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 has to run before jquery.mobile-1.1.0.js has been loaded | |
| $( document ).bind( "mobileinit", function() { | |
| // on mobileinit set all listview widgets to use the startsWith filter method by default | |
| $.mobile.listview.prototype.options.filterCallback = $.filterMethods.startsWith ); | |
| }); | |
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
| if ( !window.Node ) { | |
| window.Node = { | |
| ELEMENT_NODE: 1, | |
| ATTRIBUTE_NODE: 2, | |
| TEXT_NODE: 3, | |
| CDATA_SECTION_NODE: 4, | |
| ENTITY_REFERENCE_NODE: 5, | |
| ENTITY_NODE: 6, | |
| PROCESSING_INSTRUCTION_NODE: 7, | |
| COMMENT_NODE: 8, |
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
| /* Nothing here */ |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>QUnit Test Suite Runner</title> | |
| <link rel="stylesheet" href="./qunit.css" /> | |
| <link rel="stylesheet" href="./qunit-composite.css" /> | |
| <script src="./qunit.js"></script> | |
| <script src="./qunit-composite.js"></script> |
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
| (function( $ ) { | |
| var $lobby = $( "#tabs-lobby" ), $sparkline, counts = []; | |
| $lobby.find( "button" ).append( $( "<span />", { "class": "count", text: "0" } ) ); | |
| $.getScript( "//cdnjs.cloudflare.com/ajax/libs/jquery-sparklines/2.1.1/jquery.sparkline.min.js", function() { | |
| $sparkline = $( "<span style='height: 20px; width: 500px; padding: 0; margin: 0;' class='sparkline'>Loading..</span>" ).appendTo( "#room-filter-form" ); | |
| }); |
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
| /* jQuery qrLinkify Plugin: Add QR codes next to anchor links | |
| * Author: @elijahmanor | |
| * Example Usage: | |
| * $( "a" ).qrLinkify(); | |
| * $( "a" ).qrLinkify({ width: 250, height: 250 }); | |
| */ | |
| $.fn.qrLinkify = function( options ) { | |
| options = $.extend( {}, $.fn.qrLinkify.defaults, options ); | |
| return this.each( function( index ) { |
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() { | |
| $( "input.date" ).datepicker({ | |
| minDate: moment().subtract( "months", 1 ).toDate(), | |
| maxDate: moment().add( "months", 1 ).toDate(), | |
| dateFormat: "d M, y", | |
| constrainInput: true, | |
| beforeShowDay: $.datepicker.noWeekends | |
| }); |
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
| function cssPropertyToDomStyleProperty( name ) { | |
| return name.replace( /-(\w)/g, function(match, group) { | |
| return group.toUpperCase(); | |
| }); | |
| } |
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
| // Set context from what may come in as undefined or a jQuery collection or a node | |
| context = context || document; | |
| context = (context[0] || context).ownerDocument || context[0] || context; |
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
| <div id="qunit"></div> | |
| <div id="qunit-fixture"></div> |