This commit is contained in:
C9 2012-09-12 21:17:14 -04:00
commit 28b5be76c5
37 changed files with 1717 additions and 1437 deletions

View file

@ -146,6 +146,14 @@ blockquote p{
Menu venue
*/
form.navbar-search {
float: none;
}
h3.api_title {
padding-top: 10px;
}
ul.menu {
margin-left: 16px;
}
@ -227,7 +235,6 @@ ul.menu {
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.35); */
padding-bottom: 15px;
/* height: 31px;*/
top: 40px;
position: fixed;
}
.shadow.members{
@ -275,7 +282,7 @@ ul.menu {
.srolled .membersContent {
/*top : 0;*/
width : 695px;
padding-left : 305px;
padding-left : 407px;
margin : 0 auto 0 auto;
}
.membersBackground {
@ -532,7 +539,6 @@ header.filler {
}
#documentation article.article {
/* border-bottom: 1px solid #e9e9e9;*/
border-top: 1px solid #e9e9e9;
padding: 16px 10px 2px;
}
@ -773,9 +779,32 @@ li.signature {
font-size: 24px;
margin-top: 5px;
}
#documentation h3.methodToggle {
margin: 0;
#documentation i.methodToggle {
cursor: pointer;
color: #9f9f9f;
padding-top: 5px;
float: left;
}
#documentation i.methodToggle.methodToggleHover {
text-shadow: 0 0 10px #4699d5;
color: #4699d5;
}
#documentation i.methodToggle.active {
text-shadow: 0 0 10px #4699d5;
color: #4699d5;
/* Safari */
-webkit-transform: rotate(45deg);
/* Firefox */
-moz-transform: rotate(45deg);
/* IE */
-ms-transform: rotate(45deg);
/* Opera */
-o-transform: rotate(45deg);
}
#documentation h3.sectionHeader {
margin: 10px 0 17px 0;
line-height : 24px;

View file

@ -1,52 +0,0 @@
/* Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln { color: #000 } /* plain text */
@media screen {
.str { color: #2e6a40 } /* string content */
.kwd { color: #214afc } /* a keyword */
.com { color: #4c886b } /* a comment */
.typ { color: #1130ad } /* a type name */
.lit { color: #1130ad } /* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun, .opn, .clo { color: #2d0603 }
.tag { color: #008 } /* a markup tag name */
.atn { color: #606 } /* a markup attribute name */
.atv { color: #080 } /* a markup attribute value */
.dec, .var { color: #606 } /* a declaration; a variable name */
.fun { color: #1130ad } /* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print, projection {
.str { color: #060 }
.kwd { color: #006; font-weight: bold }
.com { color: #600; font-style: italic }
.typ { color: #404; font-weight: bold }
.lit { color: #044 }
.pun, .opn, .clo { color: #440 }
.tag { color: #006; font-weight: bold }
.atn { color: #404 }
.atv { color: #060 }
}
/* Put a border around prettyprinted code snippets. */
/*pre.prettyprint { padding: 2px; }*/
/* Specify class=linenums on a pre to get line numbering */
ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */`
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 { list-style-type: none }
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 { background: #eee }

View file

@ -1,7 +1,7 @@
$(function() {
$(document).ready(function () {
// when hovering over arrow, add highlight (only if inactive)
$("h3.methodToggle").hover(function () {
if (!$("h3.methodToggle").hasClass('active'))
$("i.methodToggle").hover(function () {
if (!$("i.methodToggle").hasClass('active'))
$(this).addClass("methodToggleHover");
},
function () {
@ -10,26 +10,45 @@ $(function() {
);
// after expanding the hidden description, hide the ellipsis
$('.signature-call, .signature-returns', '.signature').click(function() {
$("i.methodToggle").click(function() {
var $article = $(this).closest('.article'),
$arrow = $('h3.methodClicker', $article);
$arrow = $('i.methodClicker', $article);
if (!$article.hasClass('methodToggleOpen') || this.force) {
$article.addClass('methodToggleOpen');
$arrow.removeClass('inactive').addClass('active');
var data = location.hash = $arrow[0].id.replace(/^js_/, "");
var data = $arrow[0].id.replace(/^js_/, "");
location.hash = data + "#nav=api";
scrollTo(null, data);
}
else {
$article.removeClass('methodToggleOpen');
$arrow.removeClass('active').addClass('inactive');
}
});
});
$('.signature-call, .signature-returns', '.signature').click(function() {
var $article = $(this).closest('.article'),
$arrow = $('i.methodClicker', $article);
if (!$article.hasClass('methodToggleOpen') || this.force) {
$article.addClass('methodToggleOpen');
$arrow.removeClass('inactive').addClass('active');
var data = $arrow[0].id.replace(/^js_/, "");
location.hash = data + "#nav=api";
scrollTo(null, data);
}
else {
$article.removeClass('methodToggleOpen');
$arrow.removeClass('active').addClass('inactive');
}
});
$('.related-to', '.metaInfo').click(function(){
location.hash = $(this).find('a').attr('href').split('#')[1];
});
});

View file

@ -7,6 +7,6 @@ var disqus_identifier = fileName;
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();

View file

@ -11,15 +11,6 @@ $(function () {
$selNavLink.addClass('currentItem');
}
// init prettyprint
$('pre > code').addClass('prettyprint');
prettyPrint();
var baseTitle = document.title,
// base (general) part of title
pathName = window.location.pathname,
fileName = pathName.substring(window.location.pathname.lastIndexOf("/") + 1);
if (window.addEventListener) window.addEventListener('load', loadCallback, true);
else window.attachEvent('load', loadCallback, true);
@ -31,7 +22,6 @@ $(function () {
if (query) {
input.value = "";
input.blur();
var currentVersion = $('#currentVersion').text();
var url = "https://www.google.com/search?q=" + encodeURIComponent("site:ace.ajax.org/api" + " " + query);
window.open(url);
}
@ -79,11 +69,10 @@ $(document).ready(function () {
else sx = 0;
$('.members').each(function (i) {
var position = $(this).position();
var $classContent = $(this).closest('.classContent');
$(this).scrollspy({
min: $classContent.position().top - 35,
min: $classContent.position().top + 5,
max: $classContent.position().top + $classContent.height() - 35,
onEnter: function (element, position) {
var $pagination = $(element);
@ -94,8 +83,7 @@ $(document).ready(function () {
$paginationContent.css('top', 0);
$pagination.addClass('shadow').stop().css({
height: 31,
'top': 33
height: 31
}).closest('.classContent').addClass('srolled');
$tabs.addClass('tabsSansBorder');
@ -133,7 +121,7 @@ $(document).ready(function () {
});
});
$('span.methodClicker, article.article, h3.methodClicker').each(function () {
/*$('span.methodClicker, article.article, i.methodClicker').each(function () {
var a = $(this);
var constructorPos = a.attr("id").indexOf("new ");
@ -144,28 +132,21 @@ $(document).ready(function () {
}
a.attr("id", objName);
});
});*/
$('.brand').parent('.dropdown').hover(
function () {
$(this).addClass('open');
}, function () {
clearMenus();
});
$('.versions').hover(
function () {
$(this).addClass('open');
}, function () {
clearMenus();
});
function showMethodContent() {
if (!location.hash) return;
var $clickerEl = $('span#' + location.hash.replace(/^#/, '').replace(/\./g, '\\.'));
var locationHash = location.hash.replace(/^#/, '').replace(/\./g, '\\.');
var equalsPos = location.hash.indexOf("=");
if (equalsPos >=0) {
locationHash = locationHash.substring(0, location.hash.indexOf("="));
}
var $clickerEl = $('span#' + locationHash);
if ($clickerEl.length > 0 && $clickerEl.hasClass('methodClicker')) {
var p = $clickerEl.parent();
p[0].force = true;