Skip to content

Instantly share code, notes, and snippets.

View QETHAN's full-sized avatar
🎯
Focusing

QETHAN QETHAN

🎯
Focusing
View GitHub Profile
// 加入收藏
function AddFavor() {
try {
window.external.addFavorite(window.location.href, window.document.title);
}catch (e){
try{
window.sidebar.addPanel(window.document.title, window.location, "");
}catch (e) {
alert("加入收藏失败,请使用Ctrl+D进行添加");
}
1.Array.prototype.unique = function(){
var results=this.sort()
for ( var i = 1; i < results.length; i++ ) {
if ( results[i] === results[ i - 1 ] ) {
results.splice( i--, 1 );
}
}
return results;
}
Math.guid = function(){
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(c){
var r = Math.random()*16|0, v = c =='x' ? r : (r&0x3|0x8);
return v.toString(16);
}).toUpperCase();
};
$('#tips').popover({
// placement: 'bottom',
// html: true,
// content: '王女士:剩余4分31秒<br/> 王先生:剩余3分30秒'
// });
// $('#tips').popover('show');
<div class="btn-group group-type">
<input id="type" name="type" class="input-type" type="text" value="六人桌" data-required="true" onfocus="this.blur();">
<a class="btn btn-mini dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</a>
<ul class="dropdown-menu" id="ul-type">
<li>四人桌</li>
<li>六人桌</li>
<li>八人桌</li>
</ul>
@QETHAN
QETHAN / backTop.js
Created June 29, 2013 08:54
返回顶部
var BackTop = function(btnId) {
var btn = document.getElementById(btnId);
var d = document.documentElement ? document.documentElement : document.body;
window.onscroll = set;
btn.onclick = function() {
btn.className = 't_hide';
window.onscroll = null;
this.timer = setInterval(function(){
d.scrollTop -= Math.ceil(d.scrollTop*0.8);
.info-bubble span{
width: 0;
height: 0;
font-size: 0;
overflow: hidden;
position: absolute;
}
/**/
.info-bubble span.tail{
border-width: 16px;
.home_img .info-bubble {
/* background-color: #fff;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
border-radius: 8px;
-moz-box-shadow:0px 0px 3px rgba(150,150,150,0.8);
-webkit-box-shadow:0px 0px 3px rgba(150,150,150,0.8);
box-shadow:0px 0px 3px rgba(150,150,150,0.8);
*/
作者:FROYO 发布:2013-06-28 14:41 分类:网络 阅读:1,231 views 27条评论
手头有一闲置VPS,位于美国洛杉矶某机房,带宽30MBps
放着不用等它到期就浪费了,不如做一个免费VPN给大家用
需注意:1.请勿用于大流量下载;2.仅支持PPTP方式;3.不保证24小时在线(有可能线路抽风);4.VPS到期后将无法访问;5.不限制设备,手机平板也可使用;
VPN参数:(不定期更新)
地址:vpn.izhuyue.com