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
module.exports = do -> | |
ua = window.navigator.userAgent.toUpperCase() | |
if (ua.match /IPOD/) or (ua.match /IPHONE/) or (ua.match /IPAD/) | |
if (ua.match /TWITTER/) or (ua.match /LINE/) or (ua.match /FBCR/) | |
return false | |
else | |
return true | |
else | |
return true |
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
/*! | |
* Paper.js v0.9.18 - The Swiss Army Knife of Vector Graphics Scripting. | |
* http://paperjs.org/ | |
* | |
* Copyright (c) 2011 - 2014, Juerg Lehni & Jonathan Puckey | |
* http://scratchdisk.com/ & http://jonathanpuckey.com/ | |
* | |
* Distributed under the MIT license. See LICENSE file for details. | |
* | |
* All rights reserved. |
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 getQueryString() { | |
var result = {}; | |
if (1 < window.location.search.length) { | |
var query = window.location.search.substring(1); | |
var parameters = query.split('&'); | |
for (var i = 0; i < parameters.length; i++) { | |
var element = parameters[i].split('='); | |
var paramName = decodeURIComponent(element[0]); | |
var paramValue = decodeURIComponent(element[1]); | |
result[paramName] = paramValue; |
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 metaSet(metaName,setValue){ | |
var metalist = document.getElementsByTagName('meta'); | |
var metaNoExist = true; | |
for(var i = 0; i < metalist.length; i++) { | |
var name = metalist[i].getAttribute('name'); | |
if(name && name.toLowerCase() === metaName) { | |
metalist[i].setAttribute('content',setValue); | |
metaNoExist = false; | |
break; | |
} |
NewerOlder