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
/** | |
* qut-jqueryqueue | |
* @author Christopher Baldwin [https://staff.qut.edu.au/details?id=baldwicc] | |
* @licence Simplified BSD License | |
* @source https://gist.github.com/baldwicc/6315577 | |
*/ | |
/* | |
Exaple of usage: |
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
/* jshint strict: false */ | |
/* global Event, $$ */ | |
/** | |
* qut-pagetitles | |
* @author Christopher Baldwin [https://staff.qut.edu.au/details?id=baldwicc] | |
* @license Simplified BSD License | |
* @source [https://gist.github.com/baldwicc/6362607] | |
*/ | |
/* | |
Usage: |
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
/** qut-inlinewarnings | |
* Adds a native lightbox based on url regex, or a native inline messages based on matching css selectors. Useful when decommissioning tools. | |
* | |
* - Uses .html resources for lightbox iframes | |
* - Only shows lightbox once a day | |
* - Useful for building block pages, or standard pages with content items | |
* - Tracks to GA | |
* | |
* @author Christopher Baldwin [https://staff.qut.edu.au/details?id=baldwicc] | |
* @licence Simplified BSD License |
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
/** | |
* qut-bbcssfix | |
* @author Christopher Baldwin [https://staff.qut.edu.au/details?id=baldwicc] | |
* @licence Simplified BSD License | |
* @source https://gist.github.com/baldwicc/6410608 | |
*/ | |
/* Usage: | |
- Set elem_to_check and style_to_check to a style that doesn't appear to load correctly | |
- Set bad_value to the default css rule applied to this element (eg: "none") |
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"> | |
/** | |
* configurable options | |
* @type {object} | |
* @property {array} selectors array of selectors to add ie classes to | |
* @property {string} isie_prefix prefix for ie version class | |
* @property {string} isie class to add when browser is ie | |
* @property {string} not-ie class to add when browser is not ie | |
*/ |
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" id="qut-clickyicons"> | |
Event.observe(document,"dom:loaded", function() { | |
var contentitem_title_hyperlinks = $$('#content_listContainer > li > .item > h3 > a[href^="/webapps"]'); | |
for (var i = 0; i < contentitem_title_hyperlinks.length; i++) { | |
var thislink = contentitem_title_hyperlinks[i]; | |
var contentitem_icon = thislink.up('.item').previous('img.item_icon'); | |
var newlink = thislink.clone(false); | |
contentitem_icon.wrap(newlink); | |
} | |
}); |
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
var _qut = _qut || {}; | |
_qut.addscript = function(src, fn) { | |
var head = $$("head")[0], | |
script = new Element('script', { | |
type: 'text/javascript', | |
async: true, | |
defer: true | |
}), |
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
/* global $$ */ | |
/** | |
* qut-tii-defaults | |
* @author Christopher Baldwin [https://staff.qut.edu.au/details?id=baldwicc] | |
* @license Simplified BSD License | |
* @source [https://gist.github.com/baldwicc/7005606] | |
*/ | |
Event.observe(document, 'dom:loaded', function () { | |
var conf = { |
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
/** | |
* STEP 1: Setup | |
* - Open Chrome Secure Shell settings | |
* - Open JS Console (CTRL+SHIFT+J) | |
* - Copy and paste the following: | |
*/ | |
var s7d_colours = { | |
'base03': '#002b36', | |
'base02': '#073642', | |
'base01': '#586e75', |
OlderNewer