Das weiß ich nicht mehr wo die her war. eine ganz simple. nicht diese http://jqueryui.com/tabs/
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
function get_url_param( name )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if ( results == null )
return "";
else
return results[1];
}
var activetab = get_url_param("tab");
$("#tab-nav"+activetab).click();
/*Objektseite Tabs*/
$(document).ready(function() {
//Default Action
var show = 0; //0-basierend
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:eq("+show+")").addClass("active").show(); //Activate first tab
$(".tab_content:eq("+show+")").show(); //Show first tab content
//On Click Event
$("ul.tabs li").click(function() {
$("ul.tabs li").removeClass("active"); //Remove any "active" class
$(".tab_content").hide(); //Hide all tab content
$(this).addClass("active"); //Add "active" class to selected tab
var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active content
return false;
function get_url_param( name )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if ( results == null )
return "";
else
return results[1];
}
var activetab = get_url_param("tab");
$("#tab-nav"+activetab).click();
});
$('div[id^=tab] a').click(function () {
$($(this).attr('href')).trigger('click');
});
});
/*Objektseite Tabs*/
$(document).ready(function() {
//Default Action
var show = 0; //0-basierend
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:eq("+show+")").addClass("active").show(); //Activate first tab
$(".tab_content:eq("+show+")").show(); //Show first tab content
//On Click Event
$("ul.tabs li").click(function() {
$("ul.tabs li").removeClass("active"); //Remove any "active" class
$(".tab_content").hide(); //Hide all tab content
$(this).addClass("active"); //Add "active" class to selected tab
var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active content
return false;
});
function get_url_param( name )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if ( results == null )
return "";
else
return results[1];
}
var activetab = get_url_param("tab");
$("#tab-nav"+activetab).click();
$('div[id^=tab] a').click(function () {
$($(this).attr('href')).trigger('click');
});
});
/*Objektseite Slider*/
jQuery(document).ready(function($) {
$('#full-width-slider').royalSlider({
arrowsNav: true,
loop: false,
keyboardNavEnabled: true,
numImagesToPreload: 0,
controlsInside: true,
imageScaleMode: 'fill',
arrowsNavAutoHide: false,
controlNavigation: 'bullets',
thumbsFitInViewport: false,
navigateByClick: true,
startSlideId: 0,
autoPlay: false,
transitionType:'move',
globalCaption: false,
deeplinking: {
enabled: true,
change: false
}
});
});