This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-XXXXXX-X']); | |
_gaq.push(['_trackPageview']); | |
(function() { | |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var%20els=document.getElementsByClassName('main-content');els[0].style.width='660px';var%20els=document.getElementsByClassName('dashboard');els[0].style.maxWidth='360px';els[0].style.minWidth='300px';var%20els=document.getElementsByClassName('twitter-anywhere-tweet-box-editor');els[0].style.maxWidth='600px';els[0].style.width='600px';function%20moveTweetName(){var%20els=document.getElementsByClassName('tweet-content');var%20k=0;var%20movedClass = new RegExp('moved\-tweet\-name');while(k<els.length){var%20classes=els[k].className;if(!movedClass.test(classes)){moving=els[k].childNodes[1].cloneNode(true);moving.style.float='left';els[k].insertBefore(moving,els[k].childNodes[4]);els[k].removeChild(els[k].childNodes[1]);els[k].className%20+=%20'%20moved-tweet-name';}k++;}}function%20resizeTweetName(){var%20els=document.getElementsByClassName('tweet-user-name');var%20i=0;while(i<els.length){els[i].style.fontSize='11px';i++;}var%20els=document.getElementsByClassName('tweet-screen-name');var%20i=0;while(i< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// thx to dave mulder for the pointer on what needed to be added and the initial test code | |
$(function(){ | |
// simple function to force focus on title of the newly loaded page | |
$('#jqt').bind('pageAnimationEnd', function(event, info){ | |
if (info.direction == "in") { | |
$("div.current div.toolbar h1").focus(); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright (c) 2008 Massachusetts Institute of Technology | |
* | |
* Licensed under the MIT License | |
* Redistributions of files must retain the above copyright notice. | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Calendar (Default) | |
maintainer: | |
name: Dave Olsen | |
org: University Relations - Web | |
edu: West Virginia University | |
desc: The default calendar that comes with Mobile Web OSP. | |
version: 1.0 | |
data: true | |
adapter: google_calendar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright (c) 2010 West Virginia University | |
* | |
* Licensed under the MIT License | |
* Redistributions of files must retain the above copyright notice. | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright (c) 2010 West Virginia University | |
* | |
* Licensed under the MIT License | |
* Redistributions of files must retain the above copyright notice. | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright (c) 2010 West Virginia University | |
* | |
* Licensed under the MIT License | |
* Redistributions of files must retain the above copyright notice. | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// a template for web/search/ feature hence why it's totally different than all others | |
$html .= "<div class='nonfocal'><strong>Campus Map Results</strong></div>"; | |
$html .= "<p class='focal results'>"; | |
if ($total == 0) { | |
$html .= "No results returned."; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
function sendRequestToGoogleAnalytics($utmUrl) { | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accepts-Language: " . $_SERVER["HTTP_ACCEPT_LANGUAGE"])); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //Set curl to return the data instead of printing it to the browser. | |
curl_setopt($ch, CURLOPT_URL, $utmUrl); |