Docs: fix qml links and standalone build for Multimedia

Change-Id: Ia3f1e49aef203911bb5cf1ee062c9100be213b38
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
Peter Yard
2012-02-21 15:58:01 +10:00
committed by Qt by Nokia
parent e791e4f0e9
commit cd5a8fc69d
35 changed files with 828 additions and 1367 deletions

View File

@@ -1,15 +1,15 @@
/* This function generates menus and search box in narrow/slim fit mode */
var narrowInit = function() {
/* 1: Create search form */
/* 1: Create search form */
var narrowSearch = $('<div id="narrowsearch"></div>');
var searchform = $("#qtdocsearch");
narrowSearch.append(searchform);
$("#qtdocheader .content .qtref").after(narrowSearch);
/* 2: Create dropdowns */
/* 2: Create dropdowns */
var narrowmenu = $('<ul id="narrowmenu" class="sf-menu"></ul>');
/* Lookup */
/* Lookup */
var lookuptext = $("#lookup h2").attr("title");
$("#lookup ul").removeAttr("id");
$("#lookup ul li").removeAttr("class");
@@ -22,7 +22,7 @@ var narrowInit = function() {
lookuplist.append(lookupul);
narrowmenu.append(lookuplist);
/* Topics */
/* Topics */
var topicstext = $("#topics h2").attr("title");
$("#topics ul").removeAttr("id");
$("#topics ul li").removeAttr("class");
@@ -35,7 +35,7 @@ var narrowInit = function() {
topicslist.append(topicsul);
narrowmenu.append(topicslist);
/* Examples */
/* Examples */
var examplestext = $("#examples h2").attr("title");
$("#examples ul").removeAttr("id");
$("#examples ul li").removeAttr("class");
@@ -58,76 +58,76 @@ var narrowInit = function() {
/* Executes on doc ready */
$(document).ready(function(){
/* check if body has the narrow class */
if ($('body').hasClass('narrow')) {
/* run narrowInit */
narrowInit();
}
/* messure window width and add class if it is smaller than 600 px */
if($(window).width()<600) {
$('body').addClass('narrow');
/* if the search box contains */
if ($("#narrowsearch").length == 0) {
/* run narrowInit */
narrowInit();
}
}
else { /* if the window is wider than 600 px, narrow is removed */
$('body').removeClass('narrow');
if ($("#narrowsearch").length == 0) {
}
}
/* check if body has the narrow class */
if ($('body').hasClass('narrow')) {
/* run narrowInit */
narrowInit();
}
/* messure window width and add class if it is smaller than 600 px */
if($(window).width()<600) {
$('body').addClass('narrow');
/* if the search box contains */
if ($("#narrowsearch").length == 0) {
/* run narrowInit */
narrowInit();
}
}
else { /* if the window is wider than 600 px, narrow is removed */
$('body').removeClass('narrow');
if ($("#narrowsearch").length == 0) {
}
}
});
/* binding resize event to this funciton */
$(window).bind('resize', function () {
/* if the window is wider than 600 px, narrow class is added */
if($(window).width()<600) {
$('body').addClass('narrow');
if ($("#narrowsearch").length == 0) {
narrowInit();
}
}
else {
/* else we remove the narrow class */
$('body').removeClass('narrow');
/* if the window is wider than 600 px, narrow class is added */
if($(window).width()<600) {
$('body').addClass('narrow');
if ($("#narrowsearch").length == 0) {
narrowInit();
}
}
else {
/* else we remove the narrow class */
$('body').removeClass('narrow');
}
});
$('#narrowsearch').keyup(function () {
/* extract the search box content */
var searchString = $('#narrowsearch').val();
/* if the string is less than three characters */
if ((searchString == null) || (searchString.length < 3)) {
/* remove classes and elements*/
$('#narrowsearch').removeClass('loading');
$('.searching').remove();
/* run CheckEmptyAndLoadList */
CheckEmptyAndLoadList();
$('.report').remove();
return;
}
/* if timer checks out */
if (this.timer) clearTimeout(this.timer);
this.timer = setTimeout(function () {
/* add loading image by adding loading class */
$('#narrowsearch').addClass('loading');
$('.searching').remove();
$('#narrowsearch').keyup(function () {
/* extract the search box content */
var searchString = $('#narrowsearch').val();
/* if the string is less than three characters */
if ((searchString == null) || (searchString.length < 3)) {
/* remove classes and elements*/
$('#narrowsearch').removeClass('loading');
$('.searching').remove();
/* run CheckEmptyAndLoadList */
CheckEmptyAndLoadList();
/* run the actual search */
$.ajax({
contentType: "application/x-www-form-urlencoded",
url: 'http://' + location.host + '/nokiasearch/GetDataServlet',
data: 'searchString='+searchString,
dataType:'xml',
type: 'post',
success: function (response, textStatus) {
/* on success remove loading img */
$('.searching').remove();
$('#narrowsearch').removeClass('loading');
processNokiaData(response);
}
});
}, 500); /* timer set to 500 ms */
});
$('.report').remove();
return;
}
/* if timer checks out */
if (this.timer) clearTimeout(this.timer);
this.timer = setTimeout(function () {
/* add loading image by adding loading class */
$('#narrowsearch').addClass('loading');
$('.searching').remove();
/* run the actual search */
$.ajax({
contentType: "application/x-www-form-urlencoded",
url: 'http://' + location.host + '/nokiasearch/GetDataServlet',
data: 'searchString='+searchString,
dataType:'xml',
type: 'post',
success: function (response, textStatus) {
/* on success remove loading img */
$('.searching').remove();
$('#narrowsearch').removeClass('loading');
processNokiaData(response);
}
});
}, 500); /* timer set to 500 ms */
});