Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mobileDropDownChange() {
- $(".mobileTab").hide();
- $(".mobileTab" + $("#selMobileDropDown").val()).show();
- if ($("#selMobileDropDown").val() == "1")
- location.hash = "-Overview";
- setActiveMobileDropDownOption("1");
- else if ($("#selMobileDropDown").val() == "2")
- location.hash = "-Experience";
- setActiveMobileDropDownOption("2");
- else if ($("#selMobileDropDown").val() == "3")
- location.hash = "-Activities";
- setActiveMobileDropDownOption("3");
- else if ($("#selMobileDropDown").val() == "4")
- location.hash = "-Recognition";
- setActiveMobileDropDownOption("4");
- else if ($("#selMobileDropDown").val() == "5")
- location.hash = "-Publications";
- setActiveMobileDropDownOption("5");
- else if ($("#selMobileDropDown").val() == "6" || GetQueryStringParams('pl') == "neTab") {
- setActiveMobileDropDownOption("6");
- location.hash = "-News";
- } else if ($("#selMobileDropDown").val() == "7")
- setActiveMobileDropDownOption("7");
- location.hash = "-Interests";
- };
- function setActiveMobileDropDownOption(val) {
- $("#selMobileDropDown option").each(function() {
- if ($(this).val() == val) {
- $(this).prop("selected", true);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement