Permalink
Browse files

init.

  • Loading branch information...
chembohuang committed Jul 7, 2012
0 parents commit cd86a80c66933f205fb9b8af22b4cb73c21b23f9
@@ -0,0 +1,22 @@
+# Auto detect text files and perform LF normalization
+* text=auto
+
+# Custom for Visual Studio
+*.cs diff=csharp
+*.sln merge=union
+*.csproj merge=union
+*.vbproj merge=union
+*.fsproj merge=union
+*.dbproj merge=union
+
+# Standard to msysgit
+*.doc diff=astextplain
+*.DOC diff=astextplain
+*.docx diff=astextplain
+*.DOCX diff=astextplain
+*.dot diff=astextplain
+*.DOT diff=astextplain
+*.pdf diff=astextplain
+*.PDF diff=astextplain
+*.rtf diff=astextplain
+*.RTF diff=astextplain
@@ -0,0 +1,163 @@
+#################
+## Eclipse
+#################
+
+*.pydevproject
+.project
+.metadata
+bin/
+tmp/
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.classpath
+.settings/
+.loadpath
+
+# External tool builders
+.externalToolBuilders/
+
+# Locally stored "Eclipse launch configurations"
+*.launch
+
+# CDT-specific
+.cproject
+
+# PDT-specific
+.buildpath
+
+
+#################
+## Visual Studio
+#################
+
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.sln.docstates
+
+# Build results
+[Dd]ebug/
+[Rr]elease/
+*_i.c
+*_p.c
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.vspscc
+.builds
+*.dotCover
+
+## TODO: If you have NuGet Package Restore enabled, uncomment this
+#packages/
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opensdf
+*.sdf
+
+# Visual Studio profiler
+*.psess
+*.vsp
+
+# ReSharper is a .NET coding add-in
+_ReSharper*
+
+# Installshield output folder
+[Ee]xpress
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish
+
+# Others
+[Bb]in
+[Oo]bj
+sql
+TestResults
+*.Cache
+ClientBin
+stylecop.*
+~$*
+*.dbmdl
+Generated_Code #added for RIA/Silverlight projects
+
+# Backup & report files from converting an old project file to a newer
+# Visual Studio version. Backup files are not needed, because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+
+
+
+############
+## Windows
+############
+
+# Windows image file caches
+Thumbs.db
+
+# Folder config file
+Desktop.ini
+
+
+#############
+## Python
+#############
+
+*.py[co]
+
+# Packages
+*.egg
+*.egg-info
+dist
+build
+eggs
+parts
+bin
+var
+sdist
+develop-eggs
+.installed.cfg
+
+# Installer logs
+pip-log.txt
+
+# Unit test / coverage reports
+.coverage
+.tox
+
+#Translations
+*.mo
+
+#Mr Developer
+.mr.developer.cfg
+
+# Mac crap
+.DS_Store
@@ -0,0 +1 @@
+[{"src":"test/21.jpg","desc":"31.jpg 's description","link":"#"},{"src":"test/22.jpg","desc":"32.jpg 's description","link":"#"},{"src":"test/23.jpg","desc":"33.jpg 's description","link":"#"},{"src":"test/24.jpg","desc":"34.jpg 's description","link":"#"},{"src":"test/25.jpg","desc":"35.jpg 's description","link":"#"},{"src":"test/26.jpg","desc":"36.jpg 's description","link":"#"},{"src":"test/27.jpg","desc":"37.jpg 's description","link":"#"},{"src":"test/28.jpg","desc":"38.jpg 's description","link":"#"},{"src":"test/29.jpg","desc":"39.jpg 's description","link":"#"},{"src":"test/30.jpg","desc":"30.jpg 's description","link":"#"}]
107 demo.html
@@ -0,0 +1,107 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>chembo's JQuery waterfall plugin---demo.</title>
+<style>
+ body {
+ width:80%;
+ margin:0 auto;
+ background:none repeat scroll 0 0 #F2F0F0;
+ }
+ #photo_wall{
+ width:100%;
+ margin:0 auto;
+ position:relative;
+ }
+ .ablock {display:none;position:absolute;height:auto;background:#fff;text-align:center;}
+ .ablock:hover {border-radius: 5px 5px 5px 5px;
+ box-shadow: -11px 20px 48px rgba(0, 0, 0, 0.5);}
+ #nomore {display:none;text-align:center;}
+ #loading {
+ background: url("indicator_medium.gif") no-repeat scroll 50% 0 transparent;
+ height: 32px;
+ margin: 20px 0;
+ text-align: center;
+ width: 100%;
+ display:none;
+ }
+ a:link { text-decoration: none; color: #333333;}
+</style>
+</head>
+<body>
+<div id="container">
+ <div id="photo_wall">
+ <div class='ablock'><a target="_blank" href="#">
+ <img class="pic" src="test/18.jpg" />
+ <p>some description.</p></a>
+ </div>
+ <div class='ablock'><a target="_blank" href="#">
+ <img class="pic" src="test/2.jpg" />
+ <p>some description.</p></a>
+ </div>
+ <div class='ablock'><a target="_blank" href="#">
+ <img class="pic" src="test/4.jpg" />
+ <p>some description.</p></a>
+ </div>
+ <div class='ablock'><a target="_blank" href="#">
+ <img class="pic" src="test/3.jpg" />
+ <p>some description.</p></a>
+ </div>
+ <div class='ablock'><a target="_blank" href="#">
+ <img class="pic" src="test/5.jpg" />
+ <p>some description.</p></a>
+ </div>
+ <div class='ablock'><a target="_blank" href="#">
+ <img class="pic" src="test/6.jpg" />
+ <p>some description.</p></a>
+ </div>
+ <div class='ablock'><a target="_blank" href="#">
+ <img class="pic" src="test/11.jpg" />
+ <p>some description.</p></a>
+ </div>
+ <div class='ablock'><a target="_blank" href="#">
+ <img class="pic" src="test/12.jpg" />
+ <p>some description.</p></a>
+ </div>
+ <div class='ablock'><a target="_blank" href="#">
+ <img class="pic" src="test/13.jpg" />
+ <p>some description.</p></a>
+ </div>
+ <div class='ablock'><a target="_blank" href="#">
+ <img class="pic" src="test/14.jpg" />
+ <p>some description.</p></a>
+ </div>
+ <div class='ablock'><a target="_blank" href="#">
+ <img class="pic" src="test/15.jpg" />
+ <p>some description.</p></a>
+ </div>
+ <div class='ablock'><a target="_blank" href="#">
+ <img class="pic" src="test/16.jpg" />
+ <p>some description.</p></a>
+ </div>
+ <div class='ablock'><a target="_blank" href="#">
+ <img class="pic" src="test/17.jpg" />
+ <p>some description.</p></a>
+ </div>
+ </div>
+</div>
+<div id="loading"></div>
+<div id="nomore"><h1>no more.</h1></div>
+</body>
+<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
+<script type="text/javascript" src="js/jquery.cb.waterfall.plugin.min.js"></script>
+<script type="text/javascript">
+ $(function(){
+ $("#photo_wall").waterflow({
+ ajaxUrl :"ajaxData.txt", ////ajax url. e.g. /server/loadMorePics.php. return json data as {["src":"2.jpg","desc":"description","link":"#"],["src":"4.jpg","desc":"description","link":"#"]}
+ ajaxParams :{"count":20,"userId":30}, //ajax params. e.g. {"name":"chembo","loadPic":"10"}
+ ajaxCount :5, //the total times of the ajax will run when scroll hits the bottom. default to 4.
+ block_class :"ablock", //one block's width. default to ablock.
+ margin :3, //the margin between two blocks. unit is the px. default to 3.
+ block_width :230, //one block's width.
+ animate_duration:500 //jquery animate duration. unit is the million-second. default to 1000.
+ });
+ });
+</script>
+</html>

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit cd86a80

Please sign in to comment.