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
<div id="weixin_tip" style="display:none;" class="share-ad"> | |
<img src="../statics/img/tips.png" alt=""> | |
</div> | |
<script> | |
var randomTitle = ['头发甩起来!我参加了“疯狂世界杯,加加乐翻天”活动,躺在床上等奖品砸过来吧!','我参加了“疯狂世界杯,加加乐翻天”活动,快来跟我一起领大奖啦!已经有很多兄弟姐妹参加了,你!还!不!赶!紧!的!','各种大奖白送!不参与,不撸起来,简直对不起自己!','我马上要中大奖了,还是辣句话,我要红了,你们要对我好点!','人家发个贴子就中一台iPhone6,我们凭什么只看热闹!速来!','感觉马上就要中奖!不用多久,迎取百富美,走上人生巅峰,'] | |
function is_weixin(){ | |
var ua = navigator.userAgent.toLowerCase(); | |
if(ua.match(/MicroMessenger/i)=="micromessenger") { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<label for="EMAIL"> <input type="radio" id="EMAIL" name="contact_type" value="1"><span>邮箱 </span></label> | |
<label for="QQ"> <input type="radio" id="QQ" name="contact_type" value="2"><span>QQ</span></label> | |
<label for="PHONE"> <input type="radio" id="PHONE" name="contact_type" value="3"><span>电话</span></label> |
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
define("feedback",["jquery"],function(require, exports, module){ | |
var $ = jquery = jQuery = require("jquery"); | |
$(function(){ | |
var addUploadBtn = $('.add-upload-btn'), | |
inputFile = $("#inputfile"), | |
loading = $(".loading"), | |
feedbackBtn = $(".jia-feedback-btn"), | |
message = $("#message"), | |
contactText = $(".jia-contact-info"); |
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 (){ | |
var telReg = /^0?(13|14|15|18)[0-9]{9}$/; | |
var regMail = /^\w+((-w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/; | |
var stepText = $(".step-text"); | |
var mailBtn= $(".mail-btn"); |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
</head> | |
<body> | |
// multiple属性可以让用户能选择多个文件 | |
<input id="myfiles" multiple type="file"> | |
<input type="button" id="btn" value="Btn"/> |
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 replace_em(str){ | |
str = str.replace(/\</g,'<'); | |
str = str.replace(/\>/g,'>'); | |
str = str.replace(/\n/g,'<br/>'); | |
str = str.replace(/\[em_([0-9]*)\]/g,'<img src="face/$1.gif" border="0" />'); | |
return str; | |
} | |
//处理时间 |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<style type="text/css"> | |
.numshow { | |
color:red; | |
z-index:120; | |
font-size:20px; |
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 doTest(num){ | |
var ascii = 1+63+num; | |
return String.fromCharCode(ascii) | |
} |
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(){ | |
$("#control a").click(function(){ | |
var rel=$(this).attr("rel"); | |
var pos=$(rel).offset().top;//获取该点到头部的距离 | |
$("html,body").animate({scrollTop:pos}, 800); | |
}) | |
}) |
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
var scrollLoad = { | |
refreshTimer : null, | |
init: function () { | |
this.getInViewportList(); | |
this.scrollLoad(); | |
}, | |
scrollLoad : function () { | |
var self = this; | |
$(window).on('scroll', function () { | |
if (self.refreshTimer) { |