src/ZKEACMS.Product/Scripts/jquery-photowall/index.html

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>jQuery Photo Wall</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> 
<script type="text/javascript" src="jquery-photowall.js"></script> 
<link rel="stylesheet" type="text/css" href="jquery-photowall.css">
<style type="text/css"> 
html,body {
	background:#fff;
}
#gallery {

}
* {
   padding:0;
   margin: 0;
   outline: none !important; 
}

</style> 
<script type="text/javascript">
$(document).ready(function(){
    PhotoWall.init({
        el:                 '#gallery'               // Gallery element
        ,zoom:              true                     // Use zoom
        ,zoomAction:        'mouseenter'             // Zoom on action
        ,zoomTimeout:       500                      // Timeout before zoom
        ,zoomDuration:      100                      // Zoom duration time
        ,zoomImageBorder:   5                         // Zoomed image border size 
        ,showBox:           true                     // Enavle fullscreen mode
        ,showBoxSocial:     true                     // Show social buttons
        ,padding:           5                        // padding between images in gallery
        ,lineMaxHeight:     150                      // Max set height of pictures line
        ,lineMaxHeightDynamic: true                  // Dynamic lineMaxHeight. If set to True,
                                                     // then line height will be changing on 
                                                     // resize, coressponding to 
                                                     // baseScreenHeight param
        ,baseScreenHeight:  600                      // Base screen size from wich calculating dynamic lineMaxHeight  
    });
	// Max image width form Picasa
	// 94, 110, 128, 200, 220, 288, 320, 400, 512, 576, 640, 720, 800, 912, 
	// 1024, 1152, 1280, 1440, 1600
     
	$.ajax({
		url: 'https://picasaweb.google.com/data/feed/api/user/118283508237214694671/albumid/5685978516288199793'
			 +'/?alt=json&fields=entry(gphoto:id,title,media:group(media:thumbnail,media:'
			 +'content))&imgmax=720',
		dataType: 'jsonp',
		success: function(data){
		    var photos = {}
	        if(!data.feed.entry) return;
	        for(var i in data.feed.entry) {
		        var e     = data.feed.entry[i].media$group;
		        var id    = data.feed.entry[i].gphoto$id.$t;
		        
		        var t1h   = e.media$thumbnail[2].height;
		        var t1w   = e.media$thumbnail[2].width;
		        var t1src = e.media$thumbnail[2].url
		        
后面还有 27 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。