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
switch(req.method) { | |
case 'POST': | |
break; | |
case 'GET': | |
break; | |
case 'DELETE': | |
break; | |
case 'PUT': | |
break; | |
default: |
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> | |
<title>JQM Calculator</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="apple-mobile-web-app-capable" content="yes"/> | |
<!-- All of the themed CSS was removed for clarity's sake --> | |
<link href="content/jquery.mobile-1.1.0.min.css" rel="stylesheet" type="text/css" /> |
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 RocknCoder = RocknCoder || {}; | |
RocknCoder.Pages = RocknCoder.Pages || {}; | |
// handles all of the page events and dispatches them to a handler, if one exists | |
RocknCoder.Pages.Kernel = function (event) { | |
var that = this, | |
eventType = event.type, | |
pageName = $(this).attr("data-rockncoder-jspage"); |
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 RocknCoder = RocknCoder || {}; | |
RocknCoder.HideAddressBar = function () { | |
var hideUrlBar = function () { | |
if (!pageYOffset) { | |
window.scrollTo(0, 1); | |
} | |
}; |
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 RocknCoder = RocknCoder || {}; | |
RocknCoder.Pages = RocknCoder.Pages || {}; | |
RocknCoder.Pages.Kernel = function (event) { | |
var that = this, | |
eventType = event.type, | |
pageName = $(this).attr("data-rockncoder-jspage"); | |
if (RocknCoder && RocknCoder.Pages && pageName && RocknCoder.Pages[pageName] && RocknCoder.Pages[pageName][eventType]) { | |
RocknCoder.Pages[pageName][eventType].call(that); |
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 RocknCoder = RocknCoder || {}; | |
RocknCoder.hideAddressBar = function() { | |
if (navigator.userAgent.match(/Android/i)) { | |
window.scrollTo(0, 0); // reset in case prev not scrolled | |
var nPageH = $(document).height(); | |
var nViewH = window.outerHeight; | |
if (nViewH > nPageH) { | |
nViewH = nViewH / window.devicePixelRatio; |
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> | |
<title></title> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="apple-mobile-web-app-capable" content="yes"/> | |
<link href="content/jquery.mobile-1.1.0.min.css" rel="stylesheet" type="text/css" /> | |
<script src="scripts/jquery-1.7.1.min.js" type="text/javascript"></script> | |
<script src="scripts/jquery.mobile-1.1.0.min.js" type="text/javascript"></script> |
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> | |
<title></title> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="apple-mobile-web-app-capable" content="yes"/> | |
<link href="content/jquery.mobile-1.1.0.min.css" rel="stylesheet" type="text/css" /> | |
<script src="scripts/jquery-1.7.1.min.js" type="text/javascript"></script> | |
<script src="scripts/jquery.mobile-1.1.0.min.js" type="text/javascript"></script> |
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
.content-secondary { | |
width: 40%; | |
float: left; | |
} | |
.content-primary { | |
width: 60%; | |
float: left; | |
} |
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> | |
<title>JQM Responsive</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="apple-mobile-web-app-capable" content="yes"/> | |
<link href="content/jquery.mobile-1.1.0.min.css" rel="stylesheet" type="text/css" /> | |
<link href="content/style.css" rel="stylesheet" type="text/css" /> | |
<script src="scripts/jquery-1.7.1.min.js" type="text/javascript"></script> |
OlderNewer