This file contains hidden or 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
$(function() { | |
addProgressBar = function() { | |
checked = $('.discussion-timeline input:checkbox:checked.task-list-item-checkbox').length | |
total = $('.discussion-timeline .task-list-item-checkbox').length | |
progress = (checked / total) * 100.0 | |
bar = '<div class="discussion-sidebar-item progress">' | |
bar += '<h3 class="discussion-sidebar-heading">Progress</h3>' | |
bar += '<span class="progress-bar">' | |
bar += '<span class="progress" style="width: ' + progress + '%">' | |
bar += ' ' |
This file contains hidden or 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
<!doctype html> | |
<html class="no-touch no-js"> | |
<head> | |
<script> /* PUT `no-x.js` here, as early as possible, before any other CSS or JS calls ... */ </script> | |
</head> | |
... |