Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- SalsaStaff 111267: Change the starting and ending dates in events from something like this
- "Starting November 18 2015, 09:00 AM" to something like this "Starting November 18."
- Put the event keys that you'd like to have modified into the list below.
- * Event keys are always numbers.
- * Separate event keys with commas. For example, to modify events with keys 12345 and 23456
- replace 4098 with 123456,23456.
- * If you want all of the events in your Salsa HQ to be changed, then replace 4098 with
- ".+" (without quotation marks)
- -->
- <div id='event-key-list' style="display: none">4098</div>
- <script type="text/javascript">
- $(document).ready(function() {
- var keys = $('#event-key-list');
- if (keys.length == 0) {return; }
- keys = keys
- .html()
- .replace(/\s+/g, '')
- .split(',')
- .join('|');
- var m = RegExp('event_KEY=(' + keys + ')' ).exec(window.location.search);
- if (m == null) { return; };
- var startingEnding = /(Starting|Ending)\s+(\w+)\s+(\d+)/mi;
- 'day time'
- .split(' ')
- .map(function(d) { return $('.' + d); })
- .filter(function(e) { return e != null; })
- .map(function(e) {
- m = startingEnding.exec(e.html());
- if (m != null) {
- e.html(m.slice(1).join(' '));
- }
- return e.html();
- })
- })
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement