summaryrefslogtreecommitdiff
path: root/index.html
blob: 9dcd56f0e6f7552bfa3a479f58d133a4af9e8ffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Unofficial York University Course Query</title>
        <link rel="stylesheet" href="style.css">
        <script async src="script.js"></script>
        <meta name="viewport" content="width=device-width, initial-scale=1">
    </head>
    <body>
        <div class="container">
            <noscript>
                <div>
                    <p>Sorry, this doesn't do anything without JS.</p>
                </div>
            </noscript>
            <div>
                Sample queries:
                <span id="sample-queries">
                    <a href="#" class="sample-query">biol</a>,
                    <a href="#" class="sample-query">SB/ACTG 2010 3.00</a>,
                    <a href="#" class="sample-query">adms 1000 3</a>,
                    <a href="#" class="sample-query">LE EECS 1012 Cr=3.00 A Term:F Net-centric Introduction to Computing</a>
                </span>
            </div>
            <div>
                <form method="GET">
                    <table>
                        <tr>
                            <td style="width: 100%"><input type="text" id="input"></td>
                            <td><select id="sessions" size="2"></select></td>
                        </tr>
                    </table>
                </form>
            </div>
            <div id="error" style="display: none">
                Errors (fix these to generate a link):
                <ul id="error-list"></ul>
            </div>
            <div id="link-container" style="display: none">
                <p><a id="link" rel="noopener noreferrer">Course Query</a></p>
            </div>
            <div id="warning" style="display: none">
                Warnings (you can probably ignore these):
                <ul id="warning-list"></ul>
            </div>
            <hr style="margin: 2em auto; width: 80%;">
            <div>
                <p>
                This is an unofficial York University Course Query URL generator. Put in course numbers or subjects and it will spit out a persistent link (none of that "You have exceeded the maximum time limit" after 30 minutes or whatever it is). Despite the word "search" appearing sometimes, <strong>this does not search course names</strong>. Sorry, there's no public API for that. Please send complaints about the non-existence of useful APIs to the Registrar's Office. If <em>this</em> page is broken, please send mail to alex at this domain (alxu dot ca).
                </p>
                <p>
                Tips:
                <ul>
                    <li id="ywh-ad">it is highly recommended to install YorkU Web Helper, available <a href="">for Firefox</a> and <a href="">for Chrome</a>.</li>
                    <li><strong>no more "You have exceeded the maximum time limit"!</strong> bookmark the generated link, and it will always bring you to the right page. works best with YorkU Web Helper for automatic schedule loading</li>
                    <li>pressing enter in the box opens the result. ctrl-enter opens in a new tab, shift-enter opens in a new window.</li>
                    <li>remember to select the session you want on the right of the search box.</li>
                </ul>
                </p>
            </div>
        </div>
    </body>
</html>