About
function parse(data){ var first = true, items, line, lines = $('.user-content', data).text().split('\n');
$('#content-body').empty();
console.log(lines.length);
for(var i = 0; i < lines.length; i++){
line = lines[i];
if(line.indexOf('head') == 0){
items = line.split(', ');
if(!first) $('#content-body').append('<br/>');
$('#content-body').append('<div style="font-size:22px;font-weight:bold;">' + items[1] + '</div>');
first = false;
}
else if(line.indexOf('problem') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"> > <a href="/problem/' + items[1] + '">' + items[2] + '</a></div>');
}
else if(line.indexOf('link') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"><a href="//' + items[1] + '"> [External Link] ' + items[2] + '</a></div>');
}
}
}
$(document).ready(function(){ $('<li><a href="/homework" class="nav-homework">Homework</a>').insertBefore($($('li a[href="/problems/"]')[0].parentElement)); if(location.pathname == '/homework'){ $('title').html('Homework'); $('#content > h2').text('Homework'); $('#content-body').html('<br/><h3>Loading...</h3>'); $('a[href="/homework"]').addClass('active'); $.get('https://dmoj.ca/user/Timmy3Pointer', parse); } });function parse(data){ var first = true, items, line, lines = $('.user-content', data).text().split('\n');
$('#content-body').empty();
console.log(lines.length);
for(var i = 0; i < lines.length; i++){
line = lines[i];
if(line.indexOf('head') == 0){
items = line.split(', ');
if(!first) $('#content-body').append('<br/>');
$('#content-body').append('<div style="font-size:22px;font-weight:bold;">' + items[1] + '</div>');
first = false;
}
else if(line.indexOf('problem') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"> > <a href="/problem/' + items[1] + '">' + items[2] + '</a></div>');
}
else if(line.indexOf('link') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"><a href="//' + items[1] + '"> [External Link] ' + items[2] + '</a></div>');
}
}
}
$(document).ready(function(){ $('<li><a href="/homework" class="nav-homework">Homework</a>').insertBefore($($('li a[href="/problems/"]')[0].parentElement)); if(location.pathname == '/homework'){ $('title').html('Homework'); $('#content > h2').text('Homework'); $('#content-body').html('<br/><h3>Loading...</h3>'); $('a[href="/homework"]').addClass('active'); $.get('https://dmoj.ca/user/Timmy3Pointer', parse); } });function parse(data){ var first = true, items, line, lines = $('.user-content', data).text().split('\n');
$('#content-body').empty();
console.log(lines.length);
for(var i = 0; i < lines.length; i++){
line = lines[i];
if(line.indexOf('head') == 0){
items = line.split(', ');
if(!first) $('#content-body').append('<br/>');
$('#content-body').append('<div style="font-size:22px;font-weight:bold;">' + items[1] + '</div>');
first = false;
}
else if(line.indexOf('problem') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"> > <a href="/problem/' + items[1] + '">' + items[2] + '</a></div>');
}
else if(line.indexOf('link') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"><a href="//' + items[1] + '"> [External Link] ' + items[2] + '</a></div>');
}
}
}
$(document).ready(function(){ $('<li><a href="/homework" class="nav-homework">Homework</a>').insertBefore($($('li a[href="/problems/"]')[0].parentElement)); if(location.pathname == '/homework'){ $('title').html('Homework'); $('#content > h2').text('Homework'); $('#content-body').html('<br/><h3>Loading...</h3>'); $('a[href="/homework"]').addClass('active'); $.get('https://dmoj.ca/user/Timmy3Pointer', parse); } });function parse(data){ var first = true, items, line, lines = $('.user-content', data).text().split('\n');
$('#content-body').empty();
console.log(lines.length);
for(var i = 0; i < lines.length; i++){
line = lines[i];
if(line.indexOf('head') == 0){
items = line.split(', ');
if(!first) $('#content-body').append('<br/>');
$('#content-body').append('<div style="font-size:22px;font-weight:bold;">' + items[1] + '</div>');
first = false;
}
else if(line.indexOf('problem') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"> > <a href="/problem/' + items[1] + '">' + items[2] + '</a></div>');
}
else if(line.indexOf('link') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"><a href="//' + items[1] + '"> [External Link] ' + items[2] + '</a></div>');
}
}
}
$(document).ready(function(){ $('<li><a href="/homework" class="nav-homework">Homework</a>').insertBefore($($('li a[href="/problems/"]')[0].parentElement)); if(location.pathname == '/homework'){ $('title').html('Homework'); $('#content > h2').text('Homework'); $('#content-body').html('<br/><h3>Loading...</h3>'); $('a[href="/homework"]').addClass('active'); $.get('https://dmoj.ca/user/Timmy3Pointer', parse); } });function parse(data){ var first = true, items, line, lines = $('.user-content', data).text().split('\n');
$('#content-body').empty();
console.log(lines.length);
for(var i = 0; i < lines.length; i++){
line = lines[i];
if(line.indexOf('head') == 0){
items = line.split(', ');
if(!first) $('#content-body').append('<br/>');
$('#content-body').append('<div style="font-size:22px;font-weight:bold;">' + items[1] + '</div>');
first = false;
}
else if(line.indexOf('problem') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"> > <a href="/problem/' + items[1] + '">' + items[2] + '</a></div>');
}
else if(line.indexOf('link') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"><a href="//' + items[1] + '"> [External Link] ' + items[2] + '</a></div>');
}
}
}
$(document).ready(function(){ $('<li><a href="/homework" class="nav-homework">Homework</a>').insertBefore($($('li a[href="/problems/"]')[0].parentElement)); if(location.pathname == '/homework'){ $('title').html('Homework'); $('#content > h2').text('Homework'); $('#content-body').html('<br/><h3>Loading...</h3>'); $('a[href="/homework"]').addClass('active'); $.get('https://dmoj.ca/user/Timmy3Pointer', parse); } });function parse(data){ var first = true, items, line, lines = $('.user-content', data).text().split('\n');
$('#content-body').empty();
console.log(lines.length);
for(var i = 0; i < lines.length; i++){
line = lines[i];
if(line.indexOf('head') == 0){
items = line.split(', ');
if(!first) $('#content-body').append('<br/>');
$('#content-body').append('<div style="font-size:22px;font-weight:bold;">' + items[1] + '</div>');
first = false;
}
else if(line.indexOf('problem') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"> > <a href="/problem/' + items[1] + '">' + items[2] + '</a></div>');
}
else if(line.indexOf('link') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"><a href="//' + items[1] + '"> [External Link] ' + items[2] + '</a></div>');
}
}
}
$(document).ready(function(){ $('<li><a href="/homework" class="nav-homework">Homework</a>').insertBefore($($('li a[href="/problems/"]')[0].parentElement)); if(location.pathname == '/homework'){ $('title').html('Homework'); $('#content > h2').text('Homework'); $('#content-body').html('<br/><h3>Loading...</h3>'); $('a[href="/homework"]').addClass('active'); $.get('https://dmoj.ca/user/Timmy3Pointer', parse); } });function parse(data){ var first = true, items, line, lines = $('.user-content', data).text().split('\n');
$('#content-body').empty();
console.log(lines.length);
for(var i = 0; i < lines.length; i++){
line = lines[i];
if(line.indexOf('head') == 0){
items = line.split(', ');
if(!first) $('#content-body').append('<br/>');
$('#content-body').append('<div style="font-size:22px;font-weight:bold;">' + items[1] + '</div>');
first = false;
}
else if(line.indexOf('problem') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"> > <a href="/problem/' + items[1] + '">' + items[2] + '</a></div>');
}
else if(line.indexOf('link') == 0){
items = line.split(', ');
$('#content-body').append('<div style="font-size:18px;"><a href="//' + items[1] + '"> [External Link] ' + items[2] + '</a></div>');
}
}
}
$(document).ready(function(){ $('<li><a href="/homework" class="nav-homework">Homework</a>').insertBefore($($('li a[href="/problems/"]')[0].parentElement)); if(location.pathname == '/homework'){ $('title').html('Homework'); $('#content > h2').text('Homework'); $('#content-body').html('<br/><h3>Loading...</h3>'); $('a[href="/homework"]').addClass('active'); $.get('https://dmoj.ca/user/Timmy3Pointer', parse); } });