PageRenderTime 53ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/README.md

https://github.com/webdesignsolutions/jddg
Markdown | 59 lines | 50 code | 9 blank | 0 comment | 0 complexity | 4808ec0a5a1a55bf84cab5a2003f6082 MD5 | raw file
  1. # Duck Duck Go Zero Info search box
  2. I always wanted to do a jQuery plugin. Now, it's done !
  3. This is a jQuery plugin for [Duck Duck Go Zero-click Info API](https://duckduckgo.com/api.html).
  4. For those who are not familiar with [Duck Duck Go](https://duckduckgo.com/), it's my new favorite search engine. Go try it !
  5. It provides a box with some basic info (like... From wolfram alpha, wikipedia etc.).
  6. I will make some tests to make it better (but I don't like tests... Sorry) and add more parameters soon.
  7. Stay tuned !
  8. And don't forget to use [Duck Duck Go](https://duckduckgo.com/) !
  9. ## I want to use it (like a boss)
  10. First, include [jQuery](http://jquery.com/).
  11. Then, get the plugin and include it.
  12. You should have something like this:
  13. <code javascript>
  14. <script type='text/javascript' src='/path/to/jquery.min.js'></script>
  15. <script type='text/javascript' src='/path/to/jquery.ddg.min.js'></script>
  16. </code>
  17. Then, create a div in your html page, and DDGize it using :
  18. <code javascript>
  19. <script type='text/javascript'>
  20. $(function() {
  21. $('#search-ddg').ddg({secure:true});
  22. });
  23. </script>
  24. </code>
  25. That's it !
  26. ## I want to customize it (like a boss)
  27. Later son, later.
  28. For now, there are 2 parameters:
  29. * secure : true or false. To use https or simple http to call the Duck Duck Go service
  30. * width : define the width of the searchbox + results window
  31. ## I want to try it (like a boss)
  32. Yep. [Here](http://dev.federalbureauofinhumanity.org/jddg/v0.3/demo/) - v0.3
  33. The version here is commented, the downloadable version is not.
  34. You can choose the version you want.
  35. ## I want to say something (like a boss)
  36. You can contact me at siegfried.ehret@gmail.com
  37. Please write "jddg" or something in your subject.
  38. ## I want to read the license (like a boss)
  39. This plugin is licensed under the terms of the WTF Public License (see [here](http://en.wikipedia.org/wiki/WTFPL) and [here](http://sam.zoy.org/wtfpl/)) :
  40. <pre>
  41. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
  42. Version 2, December 2004
  43. Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
  44. Everyone is permitted to copy and distribute verbatim or modified
  45. copies of this license document, and changing it is allowed as long
  46. as the name is changed.
  47. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
  48. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  49. 0. You just DO WHAT THE FUCK YOU WANT TO.
  50. </pre>