added tasks

master
simon 4 years ago
parent 9659a1391d
commit b5ffc49d12

@ -0,0 +1,66 @@
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" type="text/css" href="tasks.css">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
</head>
<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<!-- Add your site or application content here -->
<div class="container-fluid">
<div class="row">
<a class="heading" onclick="showNote()">Library of Contingencies*</a><br>
<iframe id="note" class="note" src="A_note_to_the_reader.html"></iframe>
</div>
<div class="row">
<div class="col">
<iframe class="cards" name="verso" target="recto">
</iframe>
</div>
<div class="col">
<iframe class="cards" name="recto" target="verso"></iframe>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.2.1.min.js"><\/script>')</script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script>
var listoftasks = ["Acquiring_Removing", "Administrating", "Amateuring", "Annotating", "Being_kind_to_the_reader", "Bootlegging", "Cleaning_up_text", "Consulting", "Digitising_Printing", "Diversifying_through_use", "Downloading", "Editing", "Finding_texts", "Glossing", "Human_reading", "Human_writing", "Including_Excluding", "Indexing", "Inter-depending", "Inviting", "Keeping_private", "Machine_reading", "Machine_writing", "Making_it_public_Keeping_it_private", "Making_public", "Meeting_in_small_rooms_in_small_groups", "Multiplying_form", "Networking", "Open-sourcing", "Producing_texts", "Professionalising", "Proprietorising", "Reading", "Reading_Writing", "Rebinding", "Repaginating", "Reprinting", "Republishing", "Rereferencing", "Scanning", "Searching_Browsing", "Skimming", "Skimming_Scanning", "Technologising_the_word", "Trusting", "Typing", "Understanding_texts", "Uploading", "Writing"];
let randomIndex = Math.floor(Math.random() * listoftasks.length);
let pick = listoftasks[randomIndex]
verso_first_pick = pick + ".html";
recto_first_pick = pick + "_rvrs.html";
verso.location.href = verso_first_pick;
recto.location.href = recto_first_pick;
console.log("picking this as first " + recto_first_pick);
</script>
<script>
function showNote() {
document.getElementById("note").style.display = "block";
}
function hideNote() {
document.getElementById("note").style.display = "none";
}
</script>
</body>
</html>

@ -0,0 +1,209 @@
/* hide the "edit" imported from mw*/
span.mw-editsection {
display: none;
}
/* hide the marker for image gallery imported from mw*/
li.gallerybox::marker {
display: none;
}
body {
font-family: sans-serif;
color: black;
height: 100%
width: 100%;
display: block;
}
/* id for button that SHOULD open "Tasks of the Contingent Librarian" text in modal popup*/
#tasksBtn {
display: inline-block;
color: black;
font-family: serif;
font-size: 1.6em;
padding-left: 0px;
padding-right: 0px;
margin-left: 18px;
margin-top: 6px;
background-color: white;
border: none;
}
/* id for button that opens "*A note to the reader" text in modal popup*/
#noteBtn {
display: inline;
color: blue;
font-family: serif;
font-size: 1.6em;
padding-left: 0px;
padding-right: 0px;
margin-top: 6px;
background-color: white;
border: none;
}
/* hover state for buttons */
#tasksBtn:hover, #noteBtn:hover {
background-color: yellow;
color: black;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 80%; /* Full width */
height: 80%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content/Box */
.modal-content {
font-family: sans-serif;
font-size: 1.6em;
background-color: white;
margin: 10% auto; /* 10% from the top and centered */
padding: 18px;
border: 1px solid #888;
width: 50%; /* Could be more or less, depending on screen size */
}
/* The Close Button */
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
p.imgcaption {
position: relative;
}
a:hover {
background-color: yellow;
}
.snippets {
font-family: monospace;
position: absolute;
margin-top: 400px;
}
.reverse {
width: 210px;
height: 148px;
margin-left: 6px;
margin-top: 400px;
border: solid 1px blue;
}
div.container-fluid {
max-width: 100%;
}
.cardback {
width: 100%;
height: 100%;
font-family: monospace;
}
.col {
width: 50%;
}
/* main card image div class */
.thumbinner {
border: 1px dotted blue;
width: 100%;
padding: 6px;
font-family: sans-serif;
font-size: 0.9em;
}
.thumbimage {
width: 100%;
}
.row {
display: inline-block;
}
h2 {
text-align: top;
}
.heading {
font-family: serif;
font-size: 1.6em;
margin-left: 18px;
}
iframe {
border: 1px solid blue;
width: 100%;
height: 563px;
margin: 0;
}
iframe[name="verso"] {
background-repeat: repeat;
background-image: url("./IMG/2px_grey.jpg");
}
iframe[name="recto"] {
border: 1px dotted blue;
}
.alert {
font-family: serif;
font-size: 1em;
display: inline-block;
margin-top: 18px;
margin-right: 6px;
padding-left: 36px;
padding-top: 6px;
background-color: white;
width: 40%;
z-index: 2;
}
.cards {
box-shadow: 5px 8px #888888;
}
.note {
display: none;
position: absolute;
background-color: white;
z-index: 10;
}
/*
img {
position: absolute;
left: 0px;
top: 0px;
z-index: -1;
max-width: 100%
}
*/
.cardbackimg {
width: auto;
height: auto;
z-index: -2;
}

@ -0,0 +1,16 @@
document.addEventListener("DOMContentLoaded", function () {
console.log("greetings from javascript", window.location);
var name = window.location.href,
p = name.lastIndexOf("/");
name = name.substring(p+1);
var base = name.substring(0, name.length-5);
if (!base.endsWith("_rvrs")) {
var rvrs = base + "_rvrs.html";
var a = document.createElement("a");
a.href = rvrs;
a.target= "recto";
a.innerHTML = "flipside";
document.body.appendChild(a);
}
});
Loading…
Cancel
Save