Widget:Scheduling: Difference between revisions
From COMP15212 Wiki
W81054ch [PHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPmludGVyZmFjZS1hZG1pbjxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs) m (1 revision imported) |
W81054ch [PHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPmludGVyZmFjZS1hZG1pbjxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs) m (1 revision imported) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Widget for demonstrating the operation of a scheduler. | Widget for demonstrating the operation of a scheduler. | ||
[{{canonicalurl:Special:ShowWidget|widget=Scheduling&library}} Dark-mode widget for embedding] | |||
{{#widget:Scheduling}} | {{#widget:Scheduling}} | ||
</noinclude> | </noinclude> | ||
Line 23: | Line 26: | ||
<div class="row"> | <div class="row"> | ||
<div class="col-sm-6 text-center" id="buttons"> | <div class="col-sm-6 text-center" id="buttons"> | ||
<button type="button" class="btn btn ml-3 mb-5 mt-3 mr-3" id="demo_0_Btn" onclick="load_software(0)">Demo. 1</button> | <button type="button" class="btn btn-light ml-3 mb-5 mt-3 mr-3" id="demo_0_Btn" onclick="load_software(0)">Demo. 1</button> | ||
<button type="button" class="btn btn ml-3 mb-5 mt-3 mr-3" id="demo_1_Btn" onclick="load_software(1)">Demo. 2</button> | <button type="button" class="btn btn-light ml-3 mb-5 mt-3 mr-3" id="demo_1_Btn" onclick="load_software(1)">Demo. 2</button> | ||
<button type="button" class="btn btn ml-3 mb-5 mt-3 mr-3" id="demo_2_Btn" onclick="load_software(2)">Demo. 3</button> | <button type="button" class="btn btn-light ml-3 mb-5 mt-3 mr-3" id="demo_2_Btn" onclick="load_software(2)">Demo. 3</button> | ||
<button type="button" class="btn btn ml-3 mb-5 mt-3 mr-3" id="demo_3_Btn" onclick="load_software(3)">Demo. 4</button> | <button type="button" class="btn btn-light ml-3 mb-5 mt-3 mr-3" id="demo_3_Btn" onclick="load_software(3)">Demo. 4</button> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 64: | Line 67: | ||
//Credit to https://code.tutsplus.com/articles/data-structures-with-javascript-singly-linked-list-and-doubly-linked-list--cms-23392, minified with DuckDuckGo | //Credit to https://code.tutsplus.com/articles/data-structures-with-javascript-singly-linked-list-and-doubly-linked-list--cms-23392, minified with DuckDuckGo | ||
// Set to use dark theme if the body's background color is too | // Set to use dark theme if the body's background color is too dark | ||
var bodyColour = $("body").css("background-color").match(/rgba?\((.*)\)/)[1].split(',').map(Number); | var bodyColour = $("body").css("background-color").match(/rgba?\((.*)\)/)[1].split(',').map(Number); | ||
var usingDarkTheme; | var usingDarkTheme; |
Latest revision as of 07:22, 14 August 2019
Widget for demonstrating the operation of a scheduler.
Dark-mode widget for embedding
CALL RESET BELOW!
Process 1 | |
---|---|
Process 2 | |
Process 3 | |
Process 4 | |
Process 5 |