Javascripts used in STK

Scripts

Script Purpose Source
behaviour.js starts js aperto
jquery.color.js color animation plugin jquery - John Resig
jquery.cookie.js cookie management plugin Klaus Hartl
jquery.js jquery jquery
jquery.linkbutton.js makes sbbmit to links aperto
jquery.mediaqueries.js dynamic layout: implements the w3c media queries in all browsers aperto
jquery.mousewheel.js mousewheel events ???
jquery.social-b.js social bookmarking aperto
jquery.tabs.js domtabs aperto
scriptloader.js includes all scripts aperto
showbox.js lightbox / gallery aperto
styleswitcher.js for users to switch styles aperto
swfobject.js embed flash swfobject
tools-n-showbox.js lightbox helper functions aperto
ui.checkbox.js radio & checkboxes replacement aperto
ui.core.js ui - official helper functions for jquery jquery ui
ui.scroller.js scroller aperto
ui.slider.js slider jquery ui

jquery

  • Dual licensed under the MIT (MIT-LICENSE.txt)
  • and GPL (GPL-LICENSE.txt) licenses.

Questions

Why overloading $, ..

jQuery.noConflict();
(function($){
..
})(jQuery);

How will we add dynamic flash (other elements)

Currently the element is statically set in addSomeFlash (behaviour.js)

What are the dev scripts for

Can / should we drop them?

Yes please. Drop them.

Solutions

The way flowplayer interacts with jquery is quite nice and could inspire the flash integration:

$("a[@href*=.flv]").flowplayer("flowplayer-3.0.3.swf");

Never used it but it might do the trick:

So the href link could contain the width and height: myfile.swf?width=100&height=40

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.