Skip to content

Instantly share code, notes, and snippets.

View xiaojue's full-sized avatar
🤚
waiting

xiaojue xiaojue

🤚
waiting
View GitHub Profile
@xiaojue
xiaojue / html
Created January 18, 2012 07:40
autowidth
<!doctype html>
<html>
<body>
<style>
.author,.time{
width:100px;
}
.content{
position:relative;
border:#ccc solid 1px;
/**
* @author fuqiang[[email protected]]
* @version 20120514
* @description 暂时作为照片详情页的views集合
*/
define('module/view', ['module/common', 'module/model', 'module/tool', 'vendor/jquery', 'module/mask', 'module/like', 'module/userRelation'], function(R, MODEL, tool, $, mask, like, userRelation) {
var TOOL = tool.DetailTool;
var ExifHeight = 56;
/**
* @author fuqiang[[email protected]]
* @version 20120813
* @descrption 标签投稿浮出层
*/
define('module/tagsContribute', ['vendor/jquery', 'module/common', 'vendor/jquery.select'], function($, R, Select) {
//调用方法:
//(new tagsContribute('城市')).init('localUpdate'); //从本地上传init浮层
//init的参数是初始化哪个tab的标致 还有一个type为:chooseByAlbum
function loadByqueue(list,type,callback){
var queue = [],
_load = {
"sync":function(list){
var src = list[0];
if(!src) callback();
$.getScript(src,function(){
list.shift();
_load["sync"](list);
});
<!doctype html>
<html>
<head>
<title>demo</title>
<script src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
<script src="Gray.js"></script>
</head>
<style>
*{margin:0px;padding:0px;}
</style>
(function() {
$.fn.grayScan = function(options) {
var _config = {
direction: 'top',
timer: 10
},
T = null;
var config = require('./config.js'),
xml2js = require('xml2js'),
http = require('http');
var baiduZm = function() {
this.root = "box.zhangmen.baidu.com";
};
baiduZm.prototype = {
constructor: baiduZm,
define(function(require, exports, module) {
var jQuery = require('jquery'),
Events = require('events');
//基于jquery.ui
require('vendor/jquery.ui');
require('vendor/jquery.mousewhell');
(function($) {
var scrollbar = function(config) {
define(function(require, exports, module) {
//web chat基础类,不负责业务层和UI
var $ = require('jquery'),
Events = require('events'),
chatlist = require('mods/chat/chat-list'),
chatwindow = require('mods/chat/chat-window');
require('vendor/jquery.comet');
var chat = function(config) {
define(function(require, exports, module) {
var $ = require('jquery'),
face = require('mods/face/face'),
Mu = require('mustache');
require('vendor/jquery.jscrollbar');
var chatWindow = function() {
//发言间隔time object