am 95948b88
: add script and style for toggling which IDE instructions to show.
* commit '95948b88ec17e5b0f5b9cdcc43b08989cec2a34a': add script and style for toggling which IDE instructions to show.
This commit is contained in:
@@ -2989,6 +2989,34 @@ a.header-toggle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* for IDE instruction toggle (Studio/Eclipse/Other) */
|
||||||
|
select.ide {
|
||||||
|
background: transparent;
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
border-left: 0;
|
||||||
|
border-right: 0;
|
||||||
|
margin: 10px 0;
|
||||||
|
padding: 10px 0;
|
||||||
|
color:#666;
|
||||||
|
}
|
||||||
|
select.ide,
|
||||||
|
select.ide option {
|
||||||
|
font-family: inherit;
|
||||||
|
font-size:16px;
|
||||||
|
font-weight:500;
|
||||||
|
}
|
||||||
|
/* hide all except eclipse by default */
|
||||||
|
.select-ide.studio,
|
||||||
|
.select-ide.other {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
/* ... unless eclipse also includes one of the others */
|
||||||
|
.select-ide.eclipse.studio,
|
||||||
|
.select-ide.eclipse.other {
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* -----------------------------------------------
|
/* -----------------------------------------------
|
||||||
good/bad example containers
|
good/bad example containers
|
||||||
*/
|
*/
|
||||||
|
@@ -1088,8 +1088,16 @@ function hideNestedItems(list, toggle) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Call this to add listeners to a <select> element for Studio/Eclipse/Other docs */
|
||||||
|
function setupIdeDocToggle() {
|
||||||
|
$( "select.ide" ).change(function() {
|
||||||
|
var selected = $(this).find("option:selected").attr("value");
|
||||||
|
$(".select-ide").hide();
|
||||||
|
$(".select-ide."+selected).show();
|
||||||
|
|
||||||
|
$("select.ide").val(selected);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -501,7 +501,7 @@ var:sdk.linux_download
|
|||||||
function onDownloadForRealz(link) {
|
function onDownloadForRealz(link) {
|
||||||
if ($("input#agree").is(':checked') && $("#bitpicker input:checked").length) {
|
if ($("input#agree").is(':checked') && $("#bitpicker input:checked").length) {
|
||||||
$("div.sdk-terms").slideUp();
|
$("div.sdk-terms").slideUp();
|
||||||
$("h1#tos-header").text('Now downloading ' + $(link).text() + '...');
|
$("h1#tos-header").text('Now redirecting to the install instructions...');
|
||||||
$("#sdk-terms-form,.sdk-terms-intro").fadeOut('slow', function() {
|
$("#sdk-terms-form,.sdk-terms-intro").fadeOut('slow', function() {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
if ($("#downloadForRealz").attr('bundle') == 'true') {
|
if ($("#downloadForRealz").attr('bundle') == 'true') {
|
||||||
|
Reference in New Issue
Block a user