This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wget -q --mirror -p --adjust-extension -e robots=off --base=./ -k -P ./ http://2016.texascamp.org find -name "*.*\?*" | while read filename; do mv "$filename" "${filename%\?*}"; done find 2016.texascamp.org -type f -exec sed -i 's|%3Fsla8pf||g' {} + find 2016.texascamp.org -type f -exec sed -i 's|?sla8pf||g' {} + find 2016.texascamp.org -type f -exec sed -i 's|&sla8pf||g' {} + find 2016.texascamp.org -type f -exec sed -i 's|href="http://2016\.texascamp\.org|href="|g' {} +
- Loading branch information
0 parents
commit 9bc3838
Showing
191 changed files
with
32,441 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
|
||
/** | ||
* jQuery Once Plugin v1.2 | ||
* http://plugins.jquery.com/project/once | ||
* | ||
* Dual licensed under the MIT and GPL licenses: | ||
* http://www.opensource.org/licenses/mit-license.php | ||
* http://www.gnu.org/licenses/gpl.html | ||
*/ | ||
|
||
(function ($) { | ||
var cache = {}, uuid = 0; | ||
|
||
/** | ||
* Filters elements by whether they have not yet been processed. | ||
* | ||
* @param id | ||
* (Optional) If this is a string, then it will be used as the CSS class | ||
* name that is applied to the elements for determining whether it has | ||
* already been processed. The elements will get a class in the form of | ||
* "id-processed". | ||
* | ||
* If the id parameter is a function, it will be passed off to the fn | ||
* parameter and the id will become a unique identifier, represented as a | ||
* number. | ||
* | ||
* When the id is neither a string or a function, it becomes a unique | ||
* identifier, depicted as a number. The element's class will then be | ||
* represented in the form of "jquery-once-#-processed". | ||
* | ||
* Take note that the id must be valid for usage as an element's class name. | ||
* @param fn | ||
* (Optional) If given, this function will be called for each element that | ||
* has not yet been processed. The function's return value follows the same | ||
* logic as $.each(). Returning true will continue to the next matched | ||
* element in the set, while returning false will entirely break the | ||
* iteration. | ||
*/ | ||
$.fn.once = function (id, fn) { | ||
if (typeof id != 'string') { | ||
// Generate a numeric ID if the id passed can't be used as a CSS class. | ||
if (!(id in cache)) { | ||
cache[id] = ++uuid; | ||
} | ||
// When the fn parameter is not passed, we interpret it from the id. | ||
if (!fn) { | ||
fn = id; | ||
} | ||
id = 'jquery-once-' + cache[id]; | ||
} | ||
// Remove elements from the set that have already been processed. | ||
var name = id + '-processed'; | ||
var elements = this.not('.' + name).addClass(name); | ||
|
||
return $.isFunction(fn) ? elements.each(fn) : elements; | ||
}; | ||
|
||
/** | ||
* Filters elements that have been processed once already. | ||
* | ||
* @param id | ||
* A required string representing the name of the class which should be used | ||
* when filtering the elements. This only filters elements that have already | ||
* been processed by the once function. The id should be the same id that | ||
* was originally passed to the once() function. | ||
* @param fn | ||
* (Optional) If given, this function will be called for each element that | ||
* has not yet been processed. The function's return value follows the same | ||
* logic as $.each(). Returning true will continue to the next matched | ||
* element in the set, while returning false will entirely break the | ||
* iteration. | ||
*/ | ||
$.fn.removeOnce = function (id, fn) { | ||
var name = id + '-processed'; | ||
var elements = this.filter('.' + name).removeClass(name); | ||
|
||
return $.isFunction(fn) ? elements.each(fn) : elements; | ||
}; | ||
})(jQuery); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
(function ($) { | ||
|
||
/** | ||
* Attaches sticky table headers. | ||
*/ | ||
Drupal.behaviors.tableHeader = { | ||
attach: function (context, settings) { | ||
if (!$.support.positionFixed) { | ||
return; | ||
} | ||
|
||
$('table.sticky-enabled', context).once('tableheader', function () { | ||
$(this).data("drupal-tableheader", new Drupal.tableHeader(this)); | ||
}); | ||
} | ||
}; | ||
|
||
/** | ||
* Constructor for the tableHeader object. Provides sticky table headers. | ||
* | ||
* @param table | ||
* DOM object for the table to add a sticky header to. | ||
*/ | ||
Drupal.tableHeader = function (table) { | ||
var self = this; | ||
|
||
this.originalTable = $(table); | ||
this.originalHeader = $(table).children('thead'); | ||
this.originalHeaderCells = this.originalHeader.find('> tr > th'); | ||
this.displayWeight = null; | ||
|
||
// React to columns change to avoid making checks in the scroll callback. | ||
this.originalTable.bind('columnschange', function (e, display) { | ||
// This will force header size to be calculated on scroll. | ||
self.widthCalculated = (self.displayWeight !== null && self.displayWeight === display); | ||
self.displayWeight = display; | ||
}); | ||
|
||
// Clone the table header so it inherits original jQuery properties. Hide | ||
// the table to avoid a flash of the header clone upon page load. | ||
this.stickyTable = $('<table class="sticky-header"/>') | ||
.insertBefore(this.originalTable) | ||
.css({ position: 'fixed', top: '0px' }); | ||
this.stickyHeader = this.originalHeader.clone(true) | ||
.hide() | ||
.appendTo(this.stickyTable); | ||
this.stickyHeaderCells = this.stickyHeader.find('> tr > th'); | ||
|
||
this.originalTable.addClass('sticky-table'); | ||
$(window) | ||
.bind('scroll.drupal-tableheader', $.proxy(this, 'eventhandlerRecalculateStickyHeader')) | ||
.bind('resize.drupal-tableheader', { calculateWidth: true }, $.proxy(this, 'eventhandlerRecalculateStickyHeader')) | ||
// Make sure the anchor being scrolled into view is not hidden beneath the | ||
// sticky table header. Adjust the scrollTop if it does. | ||
.bind('drupalDisplaceAnchor.drupal-tableheader', function () { | ||
window.scrollBy(0, -self.stickyTable.outerHeight()); | ||
}) | ||
// Make sure the element being focused is not hidden beneath the sticky | ||
// table header. Adjust the scrollTop if it does. | ||
.bind('drupalDisplaceFocus.drupal-tableheader', function (event) { | ||
if (self.stickyVisible && event.clientY < (self.stickyOffsetTop + self.stickyTable.outerHeight()) && event.$target.closest('sticky-header').length === 0) { | ||
window.scrollBy(0, -self.stickyTable.outerHeight()); | ||
} | ||
}) | ||
.triggerHandler('resize.drupal-tableheader'); | ||
|
||
// We hid the header to avoid it showing up erroneously on page load; | ||
// we need to unhide it now so that it will show up when expected. | ||
this.stickyHeader.show(); | ||
}; | ||
|
||
/** | ||
* Event handler: recalculates position of the sticky table header. | ||
* | ||
* @param event | ||
* Event being triggered. | ||
*/ | ||
Drupal.tableHeader.prototype.eventhandlerRecalculateStickyHeader = function (event) { | ||
var self = this; | ||
var calculateWidth = event.data && event.data.calculateWidth; | ||
|
||
// Reset top position of sticky table headers to the current top offset. | ||
this.stickyOffsetTop = Drupal.settings.tableHeaderOffset ? eval(Drupal.settings.tableHeaderOffset + '()') : 0; | ||
this.stickyTable.css('top', this.stickyOffsetTop + 'px'); | ||
|
||
// Save positioning data. | ||
var viewHeight = document.documentElement.scrollHeight || document.body.scrollHeight; | ||
if (calculateWidth || this.viewHeight !== viewHeight) { | ||
this.viewHeight = viewHeight; | ||
this.vPosition = this.originalTable.offset().top - 4 - this.stickyOffsetTop; | ||
this.hPosition = this.originalTable.offset().left; | ||
this.vLength = this.originalTable[0].clientHeight - 100; | ||
calculateWidth = true; | ||
} | ||
|
||
// Track horizontal positioning relative to the viewport and set visibility. | ||
var hScroll = document.documentElement.scrollLeft || document.body.scrollLeft; | ||
var vOffset = (document.documentElement.scrollTop || document.body.scrollTop) - this.vPosition; | ||
this.stickyVisible = vOffset > 0 && vOffset < this.vLength; | ||
this.stickyTable.css({ left: (-hScroll + this.hPosition) + 'px', visibility: this.stickyVisible ? 'visible' : 'hidden' }); | ||
|
||
// Only perform expensive calculations if the sticky header is actually | ||
// visible or when forced. | ||
if (this.stickyVisible && (calculateWidth || !this.widthCalculated)) { | ||
this.widthCalculated = true; | ||
var $that = null; | ||
var $stickyCell = null; | ||
var display = null; | ||
var cellWidth = null; | ||
// Resize header and its cell widths. | ||
// Only apply width to visible table cells. This prevents the header from | ||
// displaying incorrectly when the sticky header is no longer visible. | ||
for (var i = 0, il = this.originalHeaderCells.length; i < il; i += 1) { | ||
$that = $(this.originalHeaderCells[i]); | ||
$stickyCell = this.stickyHeaderCells.eq($that.index()); | ||
display = $that.css('display'); | ||
if (display !== 'none') { | ||
cellWidth = $that.css('width'); | ||
// Exception for IE7. | ||
if (cellWidth === 'auto') { | ||
cellWidth = $that[0].clientWidth + 'px'; | ||
} | ||
$stickyCell.css({'width': cellWidth, 'display': display}); | ||
} | ||
else { | ||
$stickyCell.css('display', 'none'); | ||
} | ||
} | ||
this.stickyTable.css('width', this.originalTable.outerWidth()); | ||
} | ||
}; | ||
|
||
})(jQuery); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.