jQuery(document).ready(function () { //if ( window.orientation != undefined ){ // window.onorientationchange = updateView; //}else{ // jQuery(window).resize( updateView ); //} jQuery(document).bind("mobileinit", function(){ }); jQuery( '[data-role="page"]' ).live( 'pageshow',function(event){ var strLocation = String(window.location); var strLength = strLocation.length; var nthPosition = strLocation.lastIndexOf("/"); var pageName = strLocation.substring(nthPosition+1, strLength); var pageHeader = jQuery.mobile.activePage.children('[data-role="header"]').height(); var windowHeight = jQuery(window).height(); var fullPageHeight = windowHeight - pageHeader; loadBannerImage(); //---------------------------------------------------------------- // Make the main image draggable, but limit movement to horizontal // var windowWidth = jQuery(window).width(); var page_mainImage_width = jQuery('#page_mainImage').width(); //1276 is image width var maxX_position = 1276 - (page_mainImage_width + 20); var minX = -maxX_position; // farthest to left it can go var maxX = 0; // farthest to right it can go var yPosition = 69; // set to your y position jQuery('#page_mainImage img').draggable({ containment: [minX,yPosition,maxX,yPosition] }); //---------------------------------------------------------------- switch (pageName) { case "index.php": jQuery.mobile.activePage.children('[data-role="content"]').css('min-height', (fullPageHeight-133) +'px'); break; case "campuses.php": jQuery.mobile.activePage.children('[data-role="content"]').css('min-height', (fullPageHeight+10) +'px'); break; case "hawaii.php": jQuery.mobile.activePage.children('[data-role="content"]').css('min-height', (fullPageHeight+10) +'px'); break; case "honolulu.php": jQuery.mobile.activePage.children('[data-role="content"]').css('min-height', (fullPageHeight+10) +'px'); break; case "kapiolani.php": jQuery.mobile.activePage.children('[data-role="content"]').css('min-height', (fullPageHeight+10) +'px'); break; case "kauai.php": jQuery.mobile.activePage.children('[data-role="content"]').css('min-height', (fullPageHeight+10) +'px'); break; case "leeward.php": jQuery.mobile.activePage.children('[data-role="content"]').css('min-height', (fullPageHeight+10) +'px'); break; case "maui.php": jQuery.mobile.activePage.children('[data-role="content"]').css('min-height', (fullPageHeight+10) +'px'); break; case "windward.php": jQuery.mobile.activePage.children('[data-role="content"]').css('min-height', (fullPageHeight+10) +'px'); break; default: //jQuery.mobile.activePage.children('[data-role="content"]').css('height', (fullPageHeight+5) +'px'); jQuery.mobile.activePage.children('[data-role="content"]').css('min-height', (fullPageHeight-65) +'px'); break; } //======================= Collapse Accordion Menus ===================== INDEX - HOME PAGE if(pageName == "index.php"){ jQuery("#accordion") .accordion({ header: "h3", collapsible: true, active: false, autoHeight: false, alwaysOpen: false }); jQuery("#accordion").accordion("option", "icons",{ 'header': 'defaultIcon', 'headerSelected': 'selectedIcon' }); jQuery('#accordion').show(); } //======================================================================== GETTING STARTED if(pageName == "admissions.php"){ jQuery("#accordion2") .accordion({ header: "h3", collapsible: true, active: false, autoHeight: false, alwaysOpen: false }); jQuery("#accordion2").accordion("option", "icons",{ 'header': 'defaultIcon', 'headerSelected': 'selectedIcon' }); jQuery('#accordion2').show(); } if(pageName == "getting_started_faqs.php"){ jQuery("#accordion3") .accordion({ header: "h3", collapsible: true, active: false, autoHeight: false, alwaysOpen: false }); jQuery("#accordion3").accordion("option", "icons",{ 'header': 'defaultIcon', 'headerSelected': 'selectedIcon' }); jQuery('#accordion3').show(); } //======================================================================== PAYING FOR COLLEGE if(pageName == "financial_aid.php"){ jQuery("#accordion4") .accordion({ header: "h3", collapsible: true, active: false, autoHeight: false, alwaysOpen: false }); jQuery("#accordion4").accordion("option", "icons",{ 'header': 'defaultIcon', 'headerSelected': 'selectedIcon' }); jQuery('#accordion4').show(); } if(pageName == "apply.php"){ jQuery("#accordion5") .accordion({ header: "h3", collapsible: true, active: false, autoHeight: false, alwaysOpen: false }); jQuery("#accordion5").accordion("option", "icons",{ 'header': 'defaultIcon', 'headerSelected': 'selectedIcon' }); jQuery('#accordion5').show(); } //======================================================================== jQuery("#accordion6") .accordion({ header: "h3", collapsible: true, active: false, autoHeight: false, alwaysOpen: false }); jQuery("#accordion6").accordion("option", "icons",{ 'header': 'defaultIcon', 'headerSelected': 'selectedIcon' }); jQuery('#accordion6').show(); //======================================================================== jQuery("#accordion7") .accordion({ header: "h3", collapsible: true, active: false, autoHeight: false, alwaysOpen: false }); jQuery("#accordion7").accordion("option", "icons",{ 'header': 'defaultIcon', 'headerSelected': 'selectedIcon' }); jQuery('#accordion7').show(); //======================================================================== PRIOR LEARNING ASSESSMENT jQuery("#accordion8") .accordion({ header: "h3", collapsible: true, active: false, autoHeight: false, alwaysOpen: false }); jQuery("#accordion8").accordion("option", "icons",{ 'header': 'defaultIcon', 'headerSelected': 'selectedIcon' }); jQuery('#accordion8').show(); //======================================================================== College Access jQuery("#accordion9") .accordion({ header: "h3", collapsible: true, active: false, autoHeight: false, alwaysOpen: false }); jQuery("#accordion9").accordion("option", "icons",{ 'header': 'defaultIcon', 'headerSelected': 'selectedIcon' }); jQuery('#accordion9').show(); //alert(pageName); }); });//END jQuery(document).ready //======================================================== END DOCUMENT READY =============================================================== function loadBannerImage() { var winWidth = jQuery(window).width(); var winHeight = jQuery(window).height(); if(winWidth < winHeight){ jQuery('#jqm-homeheader').css({ 'background-image': 'url(imgs/banner_portrait.png)', 'margin': '0px 0px -23px 0px', 'height': '70px' }); }else{ jQuery('#jqm-homeheader').css({ 'background-image': 'url(imgs/banner_landscape.png)', 'margin': '0px 0px -24px 0px', 'height': '116px' }); } //---------------------------------------------------------------- // Make the main image draggable, but limit movement to horizontal // var windowWidth = jQuery(window).width(); var page_mainImage_width = jQuery('#page_mainImage').width(); //1276 is image width var maxX_position = 1276 - (page_mainImage_width + 20); var minX = -maxX_position; // farthest to left it can go var maxX = 0; // farthest to right it can go var yPosition = 69; // set to your y position jQuery('#page_mainImage img').draggable({ containment: [minX,yPosition,maxX,yPosition] }); //---------------------------------------------------------------- } // Expand and collapse DIV content like an accordion // Icon changes from a 'plus sign' to 'down arrow' var myAccord_HAW = "closed"; var myAccord_HON = "closed"; var myAccord_KAP = "closed"; var myAccord_KAU = "closed"; var myAccord_LEE = "closed"; var myAccord_MAU = "closed"; var myAccord_WIN = "closed"; function getProgramsByCampus(strID){ if(eval("myAccord_"+strID) == "open"){ jQuery('#' + strID + '_info').slideUp('slow', function(){ }); jQuery('#' + strID + ' #myAccord_icon').css('background-image', 'url(../themes/images/icon_plus.png)'); if(strID == "HAW"){ myAccord_HAW='closed' }; if(strID == "HON"){ myAccord_HON='closed' }; if(strID == "KAP"){ myAccord_KAP='closed' }; if(strID == "KAU"){ myAccord_KAU='closed' }; if(strID == "LEE"){ myAccord_LEE='closed' }; if(strID == "MAU"){ myAccord_MAU='closed' }; if(strID == "WIN"){ myAccord_WIN='closed' }; }else{ jQuery('#' + strID + '_info').css('border', 'none'); jQuery('#' + strID + '_info').html('






'); jQuery('#' + strID + '_info').slideDown('slow', function(){ jQuery.ajax({ type: "GET", dataType: "json", beforeSend: function(x) { if(x && x.overrideMimeType) { x.overrideMimeType("application/json;charset=UTF-8"); } }, url: '../db_programs.php?params=' + strID, success: function( data, textStatus, jqXHR ) { var strJSON = data; var objJSON = eval("(function(){return " + strJSON + ";})()"); jQuery('#' + strID + '_info').html(''); jQuery('#' + strID + '_info').html(""); }, error: function(xhr, textStatus, errorThrown){ //error...show message and have user re-regisiter so we can log visit alert("Error for ajax call to 'db_programs.php': " + textStatus); } });//END jQuery.ajax({ });//END slideDown('slow', function(){ jQuery('#' + strID + ' #myAccord_icon').css('background-image', 'url(../themes/images/icon_arrow_down.png)'); if(strID == "HAW"){ myAccord_HAW='open' }; if(strID == "HON"){ myAccord_HON='open' }; if(strID == "KAP"){ myAccord_KAP='open' }; if(strID == "KAU"){ myAccord_KAU='open' }; if(strID == "LEE"){ myAccord_LEE='open' }; if(strID == "MAU"){ myAccord_MAU='open' }; if(strID == "WIN"){ myAccord_WIN='open' }; } } Top 10
TOP 10 reasons why more students are choosing to start their college education at a community college
 


(BETA Testing) UH Community Colleges Mobile