This file contains 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 runtimePopup(message, popupafterclose) { | |
var template = "<div data-role='popup' class='ui-content messagePopup' style='max-width:280px'>" | |
+ "<a href='#' data-role='button' data-theme='g' data-icon='delete' data-iconpos='notext' " | |
+ " class='ui-btn-right closePopup'>Close</a> <span> " | |
+ message + " </span> </div>"; | |
popupafterclose = popupafterclose ? popupafterclose : function () {}; | |
$.mobile.activePage.append(template).trigger("create"); |
This file contains 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> | |
<head> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> | |
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | |
<script src="http://a.vimeocdn.com/js/froogaloop2.min.js?1b636-1354269188"></script> | |
<script> | |
$(document).on("pageinit", function () { | |
$("#popupVideo iframe") |
This file contains 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> | |
<head> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> | |
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | |
<script> | |
$(document).on("pageinit", function () { | |
$("#popupVideo").on({ | |
popupbeforeposition: function () { |
This file contains 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).on("mobileinit", function () { | |
$(document).on('pagebeforeshow', 'div:jqmData(role=dialog)', [], function (e, ui) { | |
$.mobile.activePage.find(".ui-btn-left").removeClass("ui-btn-left").addClass("ui-btn-right"); | |
}); | |
}); |
This file contains 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).on('pageshow', '#home', [], function () { | |
$("#addLiPopup").one("click", function () { | |
$(this).hide(); | |
injectLiAndPopup(); | |
}); | |
}); | |
function injectLiAndPopup() { | |
var _UL = $.mobile.activePage.find(":jqmData(role=listview)"); | |
var _LI = '<li><a><img class="rotate" src="http://jquerymobile.com/demos/1.2.0/docs/lists/images/album-mg.jpg"> <h1>Congratulations</h1> <p> MGMT </p> </a><a href="#congratulations" data-rel="popup" data-transition="flip">Details</a></li>'; |
This file contains 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
var deliveryJSON = { | |
"optGroups": [{ | |
"label": "FedEx", | |
"options": [{ | |
"value": "firstOvernight", | |
"label": "First Overnight" | |
}, { | |
"value": "expressSaver", | |
"label": "Express Saver" | |
}, { |
This file contains 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>jQueryMobile popup and iframe form</title> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> | |
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.js"></script> | |
<style> | |
</style> |
This file contains 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" /> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> | |
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.js"></script> | |
</head> | |
<body> |
This file contains 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).on('pageinit', '#home', function () { | |
// code | |
var _menuLoaded = false; | |
$('#menuPanel').load('menu.html', function () { | |
$(this).find(":jqmData(role=listview)").listview(); | |
$(this).trigger("updatelayout"); | |
$.mobile.loading("hide"); | |
_menuLoaded = true; | |
}); | |
$("#menuPanel").on("panelopen", function (event, ui) { |
This file contains 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
<html> | |
<head> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css"/> | |
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script> | |
<script> | |
$(document).on('pageinit', '#home', function () { | |
// code | |
var _menuLoaded = false; | |
$('#menuPanel').load('menu.html', function () { |
OlderNewer