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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Xml; | |
using System.IO; | |
public class ImportWebSiteToWWA | |
{ | |
private static void Main(string[] args) | |
{ |
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
"use strict"; | |
if (window.MSApp && window.MSApp.execUnsafeLocalFunction) { | |
(function () { | |
var _originalWrite = Document.prototype.write; | |
var _originalWriteln = Document.prototype.writeln; | |
Object.defineProperties(Document.prototype, { | |
write: { | |
value: function write() { |
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
using System; | |
using System.IO; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
public class PackImagesApplication | |
{ | |
private static string cssFormat = |
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 () { | |
if (CSSStyleDeclaration.prototype.hasOwnProperty("transform")) { | |
} | |
else if (CSSStyleDeclaration.prototype.hasOwnProperty("msTransform")) { | |
Object.defineProperties(CSSStyleDeclaration.prototype, { | |
transform: { | |
get: function get_transform() { | |
return this.msTransform; | |
}, | |
set: function set_transform(transform) { |
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
"use strict"; | |
if (typeof(Services) === "undefined") | |
{ | |
Object.defineProperties(this, { | |
Services: { | |
value: {}, | |
configurable: false, | |
writable: false | |
} |
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
"use strict"; | |
Object.defineProperties(this, { | |
"ResourceTimingArbiter": { | |
value: (function () { | |
var _oldResources = []; | |
var _allDupes = []; | |
var _resourceArbiter = {}; | |
var _escape = function(str) { | |
return "".replace.call(str, /[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); |
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
<!-- saved from url=(0014)about:internet --> | |
<!DOCTYPE HTML> | |
<script> | |
function Color(r, g, b) { | |
this.r = r; | |
this.g = g; | |
this.b = b; | |
} | |
Object.defineProperties(Color, { | |
colorFromHex: { |
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 () { | |
var _cachedDiv; | |
function domMeasureText(text, font) { | |
if (!_cachedDiv) { | |
_cachedDiv = document.createElement("div"); | |
_cachedDiv.style.visibility = "hidden"; | |
_cachedDiv.style.position = "absolute"; | |
document.body.appendChild(_cachedDiv); | |
} |
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 settingsPane = Windows.UI.ApplicationSettings.SettingsPane.getForCurrentView(); | |
settingsPane.addEventListener("commandsrequested", foo); | |
function foo(args) { | |
var cmdPrivacy = new Windows.UI.ApplicationSettings.SettingsCommand("privacy", "Privacy Policy", privacyPolicyInvoked); | |
args.request.applicationCommands.push(cmdPrivacy); | |
} | |
function privacyPolicyInvoked(args) { | |
switch (args.id) { |
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
"use strict"; | |
// IE supports duck typed classList so move it from HTMLElement to Element to support SVG. | |
// FireFox already has classList on Element so make sure not to tweak anything there. | |
// Chrome supports classList on every element, but as an instance property so no need to move anything there. | |
(function _initClassListPolyFill() { | |
if (!Element.prototype.hasOwnProperty("classList") && HTMLElement.prototype.hasOwnProperty("classList")) { | |
Object.defineProperty(Element.prototype, "classList", Object.getOwnPropertyDescriptor(HTMLElement.prototype, "classList")); | |
} |
OlderNewer