This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * AppleWidgetController.js | |
| * Copyright (c) 2010-2011 Apple, Inc. | |
| * All rights reserved. | |
| * | |
| * Responsibility: drb | |
| */ | |
| // | |
| // Class: AppleWidgetController |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.onload = function() { | |
| setTimeout(function() { | |
| document.getElementById('Stage_bear_sym_bear').click(); | |
| }, 1000); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function() { | |
| var index = $("#player").data("value"); | |
| var container = $("#playlist"); | |
| var scrollTo = $('#playlist a:nth-child(' + index + ')'); | |
| container.scrollTop(scrollTo.offset().top - container.offset().top + container.scrollTop()); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // compositionReady | |
| // http://forums.adobe.com/message/5534162 | |
| var div =sym.lookupSelector("pizza"); | |
| $("body").append($(div).css("position", "fixed")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function(){ | |
| $.ajaxSetup({ | |
| url: "/process/", | |
| cache: false | |
| }); | |
| $("#topbar .search input[title!=]").hint(); | |
| $("#navigation").navigation(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // libraries | |
| // http://www.edgedocks.com/edgecommos | |
| // http://buzz.jaysalvat.com | |
| // creationComplete | |
| yepnope({ | |
| load: ["edge_includes/EdgeCommons.js","edge_includes/buzz.min.js"] | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * iBooks JS Framework | |
| * Compatibility: iBooks 1.5+ | |
| * Copyright © 2009-2011 Apple Inc. All rights reserved. | |
| * | |
| **/ | |
| /** | |
| * @name iBooks | |
| * @namespace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //this code converts touch events to mouse events | |
| function touchHandler(event) { | |
| var touches = event.changedTouches, | |
| first = touches[0], | |
| type = ""; | |
| switch (event.type) { | |
| case "touchstart": type = "mousedown"; break; | |
| case "touchmove": type = "mousemove"; break; | |
| case "touchend": type = "mouseup"; break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // extra_finish.touchend | |
| if (e.pageY == undefined) | |
| { | |
| var touch = e.originalEvent.touches [0] || e.originalEvent.changedTouches [0]; | |
| this.swipeEndY = touch.pageY; | |
| if(this.swipeEndY < this.swipeStartY - 60) // swipe up | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // for use in stage action creationComplete | |
| this.swipeStartX; | |
| this.swipeEndX; | |
| this.swipeStartY; | |
| this.swipeEndY; | |
| this.swipePadding = 60; // prevent swipe when clicking | |
| this.onSwipeLeft = function() | |
| { |