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 GetQueryString(name){ | |
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); | |
var r = window.location.search.substr(1).match(reg); | |
if(r!=null)return unescape(r[2]); return null; | |
} |
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
// 更新: | |
// 05.27: 1、保证回调执行顺序:error > ready > load;2、回调函数this指向img本身 | |
// 04-02: 1、增加图片完全加载后的回调 2、提高性能 | |
/** | |
* 图片头数据加载就绪事件 - 更快获取图片尺寸 | |
* @version 2011.05.27 | |
* @author TangBin | |
* @see http://www.planeart.cn/?p=1121 | |
* @param {String} 图片路径 |
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
location ^~ / | |
{ | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header REMOTE-HOST $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://xxx.igumo.cc/; | |
} |
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
enableInlineVideo(document.querySelector('#thevideo')); |
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
$.ajax({ | |
type: "GET", | |
dataType: "jsonp", | |
url: "https://api.igumo.cc/api/wxcache/jsconfig", | |
data: { | |
url: location.href | |
}, | |
success: function(_data) { | |
if (_data.status == 1) { | |
wx.config({ |
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
.input_file { | |
@extend .full; | |
opacity 0; | |
} | |
<input type="file" class="input_file" accept="image/*" capture="camera"> |
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
::-webkit-scrollbar { | |
-webkit-appearance: none; | |
} | |
::-webkit-scrollbar:vertical { | |
width: 6px; | |
} | |
::-webkit-scrollbar:horizontal { | |
height: 12px; |
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
window.onpageshow = function(event){ | |
if (event.persisted) { | |
window.location.reload(); | |
} | |
}; |
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
<?php | |
ob_start(); | |
error_reporting(0); | |
require_once('../index.php'); | |
$content = ob_get_contents();//取得php页面输出的全部内容 | |
$fp = fopen("../index.html", "w"); | |
fwrite($fp, $content); | |
fclose($fp); | |
header('Location:../index.html'); | |
?> |
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 MyLottery(){ | |
this.ems = new gm.EM; | |
} | |
MyLottery.prototype = { | |
init : function (_config) { | |
var self = this; | |
self.btnStart = _config.btnStart; | |
self.prizeBox = _config.prizeBox; | |
self.btnStart.addEventListener(annie.MouseEvent.CLICK, function () { | |
if( self.isRunning ) return; |
OlderNewer