A few months ago, google deployed the HTML box gadget, which allows users to insert their own custom css styles, javascript/jQuery, and html. This is a data dump on various resources and code snippets you can use to get familiar with it. NOTE: you will need at least some understanding of html, css, and a basic understanding of programming to use most of this stuff effectively (aside from completely transferable code snippets). Familiarity with js/jQuery is of course also helpful. To get a box, head to the top left of the editor page, hit "Insert" and then "HTML Box." Go to the gadget's properties to access the editor. It has nice line numbering, syntax highlighting, and even (rudimentary) error checking. Here's google's page on the subject (with an example carousel): http://support.google.com/sites/bin/answer.py?hl=en&answer=2500646 For basic learning html, js, or css, I've had positive experiences with codeacademy.com (their js tutorial, at least, is great and very in-depth -- though people with basic familiarity might want to skim the lessons, especially at the beginning), and for less-structured, sandbox-style learning, mozilla has a great online editor called thimble. I also like w3chools, but more as a resource (for remembering what attribute that html tag can have) than a learning method. This StackOverflow question about displaying "click to expand" style elements is great - it gives 3 different methods, using jQuery, plain javascript, and css alone: http://stackoverflow.com/questions/842228/is-there-a-cross-browser-way-to-expand-text-on-click-via-css In a similar vein, here's a little documentation/tutorial on jQuery's toggle() function http://api.jquery.com/toggle/ More on this: http://shakenandstirredweb.com/240/jquery-moreless-text Here’s some
great code for this functionality: http://roshanbh.com.np/2008/03/expandable-collapsible-toggle-pane-jquery.html To learn about what jQuery is and how to use it, go straight to the source: http://jquery.com/ Although I haven't played with it much, http://jsfiddle.net/ seems to be a cool, multipaneled approach to building and sharing web code. google gooru seems to have some interesting apps-related content (including Sites-related) http://www.googlegooru.com/using-css-javascript-jquery-in-google-sites/ http://www.googlesiteswebdesign.com/ also seems to be pretty interesting an useful. Check out https://sites.google.com/a/cognitivescience.co/cognitive-science-of-learning/sam for examples (coming soon) Look for this to be added to in the future, and PLEASE, if you come across any useful resources or code snippets you think we might use, POST THEM. Thanks! |
Resources > Using Google Sites >