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
shutdown -a |
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
//Shutdown the PC after 15 min; | |
shutdown -s -t 900 |
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
protected override void OnPreRender(System.EventArgs e) | |
{ | |
//loop through all the controls | |
foreach (Control oLink in Page.Header.Controls){ | |
if (oLink is HtmlLink){ | |
HtmlLink cssLink = oLink as HtmlLink; | |
//Check if CSS link | |
if (cssLink.Attributes["type"].Equals("text/css", StringComparison.CurrentCultureIgnoreCase)){ | |
if (cssLink.Attributes["href"].Contains(String.Format("~/App_Themes/{0}/", Page.Theme))){ | |
//add a version of your app 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
function IsInputElement() { | |
var i = document.createElement("input"); | |
i.setAttribute("type", "color"); | |
return i.type !== "text"; | |
} |
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 IsBaselineVideo() { | |
if (!supports_video()) { return false; } | |
var v = document.createElement("video"); | |
return v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'); | |
} |
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 IsCanvas() { | |
return !!document.createElement('canvas').getContext; | |
} |
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 IsGeolocation() { | |
return 'geolocation' in navigator; | |
} |