Advertisement
asanchez75

Firebug/JQuery

Jan 2nd, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. (function($){
  2. console.log(Drupal.toSource());
  3. })(jQuery)
  4. ===============================
  5. (function($){
  6. console.log(JSON.stringify(Drupal));
  7. })(jQuery)
  8. ========================
  9. firebug
  10. =========================
  11. (function($){
  12. $(document).ready(
  13. function () {
  14. console.log($(window.location));
  15. }
  16. );
  17. })(jQuery)
  18.  
  19. =========================
  20. http://drupal.org/node/171213
  21. ====================
  22. (function($) {
  23. $(document).ready(function(){
  24. // http://www.jquerynewsticker.com/
  25. });
  26. })(jQuery);
  27.  
  28.  
  29. ====================
  30. jQuery(document).ready(function($) {
  31. console.log($("#page-title").html());
  32. });
  33. =====================
  34. (function($) {
  35. console.log($("#page-title").html());
  36. })(jQuery);
  37. =====================
  38. // Using the closure to map jQuery to $.
  39. (function ($) {
  40. if ($('div').hasClass('content')) {
  41. console.log('yes');
  42. };
  43. }(jQuery));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement