<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
img {
max-width: 100%;
height: auto;
}
p.details {
font-style:italic;
color:#777
}
.footer p {
font-size:small;
color:#777
}
pre.commit-message {
white-space: pre-wrap;
}
.file-stats a {
text-decoration: none;
}
.file-stats .new-file {
color: #090;
}
.file-stats .deleted-file {
color: #B00;
}
</style>
<body>
<div class='content'>
<h3>Imran Hussain pushed to branch master at <a href="https://projects.sucs.org/sucssite/sucs-site">sucssite / sucs-site</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://projects.sucs.org/sucssite/sucs-site/commit/abde719ae2338a49441344fa919f1c87518f99ff">abde719a</a></strong>
<div>
<span>by Imran Hussain</span>
<i>at 2015-11-09T14:52:21Z</i>
</div>
<pre class='commit-message'>Fix formatting and add missing ; to cb.js</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
htdocs/js/cb.js
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://projects.sucs.org/sucssite/sucs-site/commit/abde719ae2338a49441344fa919f1c87518f99ff#diff-0'>
<strong>
htdocs/js/cb.js
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/htdocs/js/cb.js
</span><span style="color: #000000;background-color: #ddffdd">+++ b/htdocs/js/cb.js
</span><span style="color: #aaaaaa">@@ -1,87 +1,85 @@
</span> /*
<span style="color: #000000;background-color: #ffdddd">-addEvent function from http://www.quirksmode.org/blog/archives/2005/10/_and_the_winner_1.html
-*/
-function addEvent( obj, type, fn )
-{
- if (obj.addEventListener)
- obj.addEventListener( type, fn, false );
- else if (obj.attachEvent)
- {
- obj["e"+type+fn] = fn;
- obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
- obj.attachEvent( "on"+type, obj[type+fn] );
- }
</span><span style="color: #000000;background-color: #ddffdd">+ addEvent function from http://www.quirksmode.org/blog/archives/2005/10/_and_the_winner_1.html
+ */
+function addEvent(obj, type, fn) {
+ if (obj.addEventListener)
+ obj.addEventListener(type, fn, false);
+ else if (obj.attachEvent) {
+ obj["e" + type + fn] = fn;
+ obj[type + fn] = function () {
+ obj["e" + type + fn](window.event);
+ };
+ obj.attachEvent("on" + type, obj[type + fn]);
+ }
</span> }
/*
<span style="color: #000000;background-color: #ffdddd">-createElement function found at http://simon.incutio.com/archive/2003/06/15/javascriptWithXML
-*/
</span><span style="color: #000000;background-color: #ddffdd">+ createElement function found at http://simon.incutio.com/archive/2003/06/15/javascriptWithXML
+ */
</span> function createElement(element) {
<span style="color: #000000;background-color: #ffdddd">- if (typeof document.createElementNS != 'undefined') {
- return document.createElementNS('http://www.w3.org/1999/xhtml', element);
- }
- if (typeof document.createElement != 'undefined') {
- return document.createElement(element);
- }
- return false;
</span><span style="color: #000000;background-color: #ddffdd">+ if (typeof document.createElementNS != 'undefined') {
+ return document.createElementNS('http://www.w3.org/1999/xhtml', element);
+ }
+ if (typeof document.createElement != 'undefined') {
+ return document.createElement(element);
+ }
+ return false;
</span> }
function insertTop(obj) {
<span style="color: #000000;background-color: #ffdddd">- // Create the two div elements needed for the top of the box
- d=createElement("div");
- d.className="bt"; // The outer div needs a class name
- d2=createElement("div");
</span><span style="color: #000000;background-color: #ddffdd">+ // Create the two div elements needed for the top of the box
+ d = createElement("div");
+ d.className = "bt"; // The outer div needs a class name
+ d2 = createElement("div");
</span> d.appendChild(d2);
<span style="color: #000000;background-color: #ffdddd">- obj.insertBefore(d,obj.firstChild);
</span><span style="color: #000000;background-color: #ddffdd">+ obj.insertBefore(d, obj.firstChild);
</span> }
function insertBottom(obj) {
<span style="color: #000000;background-color: #ffdddd">- // Create the two div elements needed for the bottom of the box
- d=createElement("div");
- d.className="bb"; // The outer div needs a class name
- d2=createElement("div");
</span><span style="color: #000000;background-color: #ddffdd">+ // Create the two div elements needed for the bottom of the box
+ d = createElement("div");
+ d.className = "bb"; // The outer div needs a class name
+ d2 = createElement("div");
</span> d.appendChild(d2);
<span style="color: #000000;background-color: #ffdddd">- obj.appendChild(d);
</span><span style="color: #000000;background-color: #ddffdd">+ obj.appendChild(d);
</span> }
<span style="color: #000000;background-color: #ffdddd">-function initCB()
-{
- // Find all div elements
- var divs = document.getElementsByTagName('div');
- var cbDivs = [];
- for (var i = 0; i < divs.length; i++) {
- // Find all div elements with cbb in their class attribute while allowing for multiple class names
- if (/\bcbb\b/.test(divs[i].className))
- cbDivs[cbDivs.length] = divs[i];
- }
- // Loop through the found div elements
- var thediv, outer, i1, i2;
- for (var i = 0; i < cbDivs.length; i++) {
- // Save the original outer div for later
- thediv = cbDivs[i];
- // Create a new div, give it the original div's class attribute, and replace 'cbb' with 'cb'
- outer = createElement('div');
- outer.className = thediv.className;
- outer.className = thediv.className.replace('cbb', 'cb');
- // Change the original div's class name and replace it with the new div
- thediv.className = 'i3';
- thediv.parentNode.replaceChild(outer, thediv);
- // Create two new div elements and insert them into the outermost div
- i1 = createElement('div');
- i1.className = 'i1';
- outer.appendChild(i1);
- i2 = createElement('div');
- i2.className = 'i2';
- i1.appendChild(i2);
- // Insert the original div
- i2.appendChild(thediv);
- // Insert the top and bottom divs
- insertTop(outer);
- insertBottom(outer);
- }
</span><span style="color: #000000;background-color: #ddffdd">+function initCB() {
+ // Find all div elements
+ var divs = document.getElementsByTagName('div');
+ var cbDivs = [];
+ for (var i = 0; i < divs.length; i++) {
+ // Find all div elements with cbb in their class attribute while allowing for multiple class names
+ if (/\bcbb\b/.test(divs[i].className))
+ cbDivs[cbDivs.length] = divs[i];
+ }
+ // Loop through the found div elements
+ var thediv, outer, i1, i2;
+ for (var i = 0; i < cbDivs.length; i++) {
+ // Save the original outer div for later
+ thediv = cbDivs[i];
+ // Create a new div, give it the original div's class attribute, and replace 'cbb' with 'cb'
+ outer = createElement('div');
+ outer.className = thediv.className;
+ outer.className = thediv.className.replace('cbb', 'cb');
+ // Change the original div's class name and replace it with the new div
+ thediv.className = 'i3';
+ thediv.parentNode.replaceChild(outer, thediv);
+ // Create two new div elements and insert them into the outermost div
+ i1 = createElement('div');
+ i1.className = 'i1';
+ outer.appendChild(i1);
+ i2 = createElement('div');
+ i2.className = 'i2';
+ i1.appendChild(i2);
+ // Insert the original div
+ i2.appendChild(thediv);
+ // Insert the top and bottom divs
+ insertTop(outer);
+ insertBottom(outer);
+ }
</span> }
<span style="color: #000000;background-color: #ffdddd">-if(document.getElementById && document.createTextNode)
-{
- addEvent(window, 'load', initCB);
</span><span style="color: #000000;background-color: #ddffdd">+if (document.getElementById && document.createTextNode) {
+ addEvent(window, 'load', initCB);
</span> }
\ No newline at end of file
</code></pre>
<br>
</li>
</div>
<div class='footer' style='margin-top: 10px;'>
<p>
—
<br>
<a href="https://projects.sucs.org/sucssite/sucs-site/commit/abde719ae2338a49441344fa919f1c87518f99ff">View it on GitLab</a>
<br>
You're receiving this email because of your account on <a href="https://projects.sucs.org/">projects.sucs.org</a>.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://projects.sucs.org/sucssite/sucs-site/commit/abde719ae2338a49441344fa919f1c87518f99ff"}}</script>
</p>
</div>
</body>
</html>