Skip to content

Commit

Permalink
Release documentation for 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lifesinger committed Jul 12, 2012
1 parent 3802b1e commit 75d8fce
Show file tree
Hide file tree
Showing 69 changed files with 602 additions and 6,370 deletions.
247 changes: 0 additions & 247 deletions docs/assets/api.css

This file was deleted.

32 changes: 0 additions & 32 deletions docs/assets/bookmarklet.js

This file was deleted.

23 changes: 23 additions & 0 deletions docs/assets/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,29 @@ a:hover { text-decoration: underline; }
text-decoration: none;
}

#page-downloads p.current {
margin-left: 38px;
}

#page-downloads h3 {
margin-bottom: -10px;
}

#page-downloads .date {
color: #A4A4A4;
text-shadow: #ffffff 0 1px;
font-size: 12px;
margin-right: 20px;
}

#page-downloads ul li {
list-style: none;
}

#page-downloads a {
margin-right: 20px;
}


/* #footer */
#footer {
Expand Down
20 changes: 11 additions & 9 deletions docs/assets/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

seajs.config({
base: './docs/assets/',
base: './assets/',
alias: {
'jquery': 'https://a.alipayobjects.com/static/arale/jquery/1.7.2/jquery.js'
}
Expand Down Expand Up @@ -91,20 +91,22 @@ define('home', [], function(require) {

require.async(['jquery', 'hello'], function($, hello) {
$('#beautiful-sea').click(hello.sayHello)
initLazySrc($)
})

initCompanyLogos()
introInited = true
}

function initCompanyLogos() {
var imgs = document.getElementById('company-logos')
.getElementsByTagName('img')
function initLazySrc($) {
var elements = $('#page-intro img, #page-intro iframe')

for (var i = 0, len = imgs.length; i < len; i++) {
var img = imgs[i]
img.src = img.getAttribute('data-src')
}
elements.each(function(i, elem) {
elem = $(elem)
var dataSrc = elem.attr('data-src')
if (dataSrc) {
elem.attr('src', dataSrc)
}
})
}

function getElementsByClassName(root, className) {
Expand Down
Loading

0 comments on commit 75d8fce

Please sign in to comment.