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 getBrowserPrefix( propName ) { | |
var prefixes = ['Moz','Webkit','ms']; // also O and Khtml | |
for ( var len = prefixes.length; len--; ) { | |
if( ( prefixes[len] + 'Transform' ) in document.body.style ) { | |
return '-' + prefixes[len].toLowerCase() + '-' + propName; | |
} | |
} | |
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
var support3d = 'WebKitCSSMatrix' in window || 'MozPerspective' in document.body.style; |
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
var isTouch = 'ontouchstart' in window; |
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 (Chayns, window, undefined) { | |
'use strict'; | |
var lh = window.location.href; | |
function chooseOS(c) { | |
var osList = [ | |
new Chayns.SelectOption('Normal', '', false), |
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 (module, Chayns, undefined) { | |
'use strict'; | |
module.alert = function (message, cb) { | |
var buttons = [new Chayns.PopUpButton('OK', cb)]; | |
Chayns.ShowPopUp(message, "", buttons); | |
}; | |
})(window.TappProject, Chayns); |
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 (module, Chayns, undefined) { | |
'use strict'; | |
module.confirm = function (question, yesCallback, noCallback) { | |
question = question || ''; | |
yesCallback = yesCallback || Function.prototype; | |
noCallback = noCallback || Function.prototype; |
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
public Models.ShopArticle GetArticle(int aID) | |
{ | |
SqlCommand cmd = CreateSQLCommand("spGetShopArticle"); | |
cmd.Parameters.Add(CreateParam("@ArticleID", aID)); | |
var dataTable = Fill(cmd); | |
var retval = new Models.ShopArticle(); | |
if (dataTable.TDataRows.Count == 0) | |
{ | |
return retval; |
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
public class RouteConfig | |
{ | |
public static void RegisterRoutes(RouteCollection routes) | |
{ | |
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | |
// add this block \o/ | |
routes.MapRoute( | |
name: "single", | |
url: "{controller}/{id}", |