index.html 14.2 KB
Newer Older
yPhil's avatar
yPhil committed
1 2 3
<!doctype html>
<html lang="en">
  <head>
4 5 6

    <title>Pétrolette</title>

yPhil's avatar
yPhil committed
7
    <meta charset="UTF-8">
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

    <script>
     /*
        @licstart  The following is the entire license notice for the
        JavaScript code in this page.

        Copyright (C) 2018  Philippe Y Coatmeur

        The JavaScript code in this page is free software: you can
        redistribute it and/or modify it under the terms of the GNU
        General Public License (GNU GPL) as published by the Free Software
        Foundation, either version 3 of the License, or (at your option)
        any later version.  The code is distributed WITHOUT ANY WARRANTY;
        without even the implied warranty of MERCHANTABILITY or FITNESS
        FOR A PARTICULAR PURPOSE.  See the GNU GPL for more details.

        As additional permission under GNU GPL version 3 section 7, you
        may distribute non-source (e.g., minimized or compacted) forms of
        that code without the copy of the GNU GPL normally required by
        section 4, provided you include this license notice and a URL
        through which recipients can access the Corresponding Source.

        @licend  The above is the entire license notice
        for the JavaScript code in this page.
      */
    </script>

yPhil's avatar
yPhil committed
35
    <meta name="viewport" content="width=device-width, initial-scale=1">
yPhil's avatar
yPhil committed
36 37

    <meta property="og:title" content="Pétrolette">
38 39
    <meta property="og:description" content="The fly-by-night news reader">
    <meta name="description" content="The fly-by-night news reader" />
yPhil's avatar
yPhil committed
40 41 42 43
    <meta property="og:image" content="http://takeoff.petrolette.space/img/screenshot-desktop.png">
    <meta property="og:url" content="http://petrolette.space">
    <meta name="twitter:card" content="summary_large_image">

yPhil's avatar
yPhil committed
44 45 46 47 48 49 50 51 52
    <link rel="apple-touch-icon" sizes="180x180" href="/static/images/favicons/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="/static/images/favicons/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="/static/images/favicons/favicon-16x16.png">
    <link rel="manifest" href="/static/images/favicons/site.webmanifest">
    <link rel="mask-icon" href="/static/images/favicons/safari-pinned-tab.svg" color="#5bbad5">
    <link rel="shortcut icon" href="/static/images/favicons/favicon.ico">
    <meta name="msapplication-TileColor" content="#2d89ef">
    <meta name="msapplication-config" content="/static/images/favicons/browserconfig.xml">
    <meta name="theme-color" content="#ffffff">
yPhil's avatar
yPhil committed
53

54
    <link rel="stylesheet" href="/static/css/themes/base/jquery-ui.min.css">
yPhil's avatar
yPhil committed
55
    <link id="theme" rel="stylesheet" href="/static/css/themes/night.css">
56
    <link rel="stylesheet" href="/static/css/fontello.css">
yPhil's avatar
yPhil committed
57 58
    <link rel="stylesheet" href="/bower/fancybox/dist/jquery.fancybox.min.css" />
    <link rel="stylesheet" href="/bower/intro.js/minified/introjs.min.css" />
59

60
    <link rel="stylesheet" href="/static/css/petrolette.css">
61

yPhil's avatar
yPhil committed
62 63 64 65
    <script src="/bower/jquery/dist/jquery.min.js"></script>
    <script src="/bower/jquery-ui/jquery-ui.min.js"></script>
    <script src="/bower/intro.js/minified/intro.min.js"></script>
    <script src="/bower/fancybox/dist/jquery.fancybox.min.js"></script>
66
    <script src="/bower/remotestorage/release/remotestorage.js"></script>
yPhil's avatar
yPhil committed
67
    <script src="/bower/rs-widget/build/widget.js"></script>
68

69 70 71
    <script src="/static/js/PTL.main.js"></script>
    <script src="/static/js/PTL.prefs.js"></script>
    <script src="/static/js/PTL.i18n.js"></script>
yPhil's avatar
yPhil committed
72

yPhil's avatar
yPhil committed
73
  </head>
yPhil's avatar
yPhil committed
74

75
  <body>
yPhil's avatar
yPhil committed
76

77
    <div id="overlay" class="hidden"></div>
yPhil's avatar
yPhil committed
78

yPhil's avatar
yPhil committed
79
    <div id="preload">
80
      <i class="fontello"></i>
yPhil's avatar
yPhil committed
81
      <i class="logo-title">.</i>
82
      <i class="feed-title">.</i>
yPhil's avatar
yPhil committed
83
      <i class="ui-icon"></i>
yPhil's avatar
yPhil committed
84 85
    </div>

yPhil's avatar
yPhil committed
86 87 88 89
    <nav id="top-menu" class="menu">
      <div class="topnav" id="topnav">

        <div id="menuButton"
90
             class="menuBarItem logoType translate js-enabled-only"
yPhil's avatar
yPhil committed
91 92 93 94 95 96 97 98 99
             title="Set Pétrolette preferences/options"
             data-title="Set Pétrolette preferences/options">
          <i class="logoType icon-menu"></i>
          <span class="text translate"
                data-content="Menu">
            Menu
          </span>
        </div>

100
        <div class="menuBarItem logoType translate help-button js-enabled-only"
yPhil's avatar
yPhil committed
101 102 103 104 105 106 107 108 109
             title="What exactly is Pétrolette?"
             data-title="What exactly is Pétrolette?">
          <i class="logoType icon-help-1"></i>
          <span class="text translate"
                data-content="Help">
            Help
          </span>
        </div>

110 111 112 113
        <div id="newFeedButton"
             class="menuBarItem logoType translate new-feed-button js-enabled-only"
             title="Add a feed"
             data-title="Add a feed">
yPhil's avatar
yPhil committed
114 115
          <i class="logoType icon-plus"></i>
          <span class="text translate"
116 117
                data-content="Feed">
            Feed
yPhil's avatar
yPhil committed
118 119 120
          </span>
        </div>

yPhil's avatar
yPhil committed
121
        <div id="logo-title" title="Pétrolette <%= version %>">
yPhil's avatar
yPhil committed
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
          <div class="logo-title">
            <a href="http://takeoff.petrolette.space">Pétrolette</a>
          </div>
          <div class="logoType">
            <i class="icon-petrolette"></i>
          </div>
          <span id="beta-badge">beta</span>
        </div>

      </div>
    </nav>

    <nav id="side-menu" class="menu">
      <div id="side-menu" class="plip">

        <fieldset class="menuForm ui-widget ui-widget-content ui-corner-all">
          <legend id="languageLegend"
                  class="ui-corner-top translate"
                  data-content="Language">
            Language
          </legend>
          <select id="language"
                  class="unique translate"
                  name="language"
                  data-title="Language"
                  title="Language">
            <option id="optionEnglish"
                    class="translate"
                    data-content="English"
                    selected="selected"
                    value="en"></option>
            <option id="optionFrench"
                    class="translate"
                    data-content="Français"
                    value="fr"></option>
            <option id="optionJapanese"
                    class="translate"
                    data-content="日本語"
                    value="ja"></option>
            <option id="optionSpanish"
                    class="translate"
                    data-content="Español"
                    value="es"></option>
          </select>
        </fieldset>

        <fieldset class="ui-widget ui-widget-content ui-corner-all">
          <legend id="tabsLegend"
                  class="ui-corner-top translate"
171 172
                  data-content="Feeds">
            Feeds
yPhil's avatar
yPhil committed
173 174 175 176 177 178 179
          </legend>
          <div class="flex-box">
            <input id="fileImport"
                   type="file"
                   style="display: none;" />
            <button id="fileImport"
                    class="grow translate"
180 181
                    data-title="Open / import groups and feeds"
                    data-content="Open">
yPhil's avatar
yPhil committed
182
              <i class="icon-upload"></i>
183
              Open
yPhil's avatar
yPhil committed
184 185 186
            </button>
            <button id="saveTabs"
                    class="grow translate last"
187 188
                    data-title="Save / export groups and feeds"
                    data-content="Save">
yPhil's avatar
yPhil committed
189
              <i class="icon-download"></i>
190
              Save
yPhil's avatar
yPhil committed
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
            </button>
          </div>
          <div id="sync-box"></div>
          <div id="progress-bar"><div class="progress-label"></div></div>
        </fieldset>

        <fieldset class="menuForm ui-widget ui-widget-content ui-corner-all">
          <legend id="themeLegend"
                  class="ui-corner-top translate"
                  data-content="Theme">
            Theme
          </legend>
          <div id="themeBox"
               class="flex-box">
            <label id="dayLabel"
                   class="grow translate"
                   for="day"
                   data-title="Day theme"
                   title="Day theme"
                   data-content="Day">
              Day
            </label>
            <input id="day"
                   class="themeSwitcher checkboxradio"
                   type="radio"
                   name="radio-1"
                   value="day">
            <label id="nightLabel"
                   class="grow translate last"
                   for="night"
                   data-title="Night theme"
                   title="Night theme"
                   data-content="Night">
              Night
            </label>
            <input id="night"
                   class="themeSwitcher checkboxradio noBottom"
                   type="radio"
                   name="radio-1"
                   value="night">
          </div>
        </fieldset>

        <fieldset id="galleryBox"
                  class="menuForm ui-widget ui-widget-content ui-corner-all">
          <legend id="imageGalleryLegend"
                  class="ui-corner-top translate"
                  data-content="Image gallery">
            Image gallery
          </legend>
          <label class="ui-helper-hidden"
                 for="gallerySlideshowSpeedValue"></label>
          <span id="gallerySlideshowSpeedValue"
                class="twin"></span>
          <div id="gallerySlideshowSpeed"></div>
          <div class="flex-box">
            <div class="grow">
              <label for="gallerySpeed" class="ui-helper-hidden">
                <input type="text" id="gallerySpeed" />
              </label>
              <div id="gallerySpeedSlider"
                   data-title="Slideshow speed"
                   class="translate">
              </div>
            </div>
            <label for="spinner" class="ui-helper-hidden">Select a value:</label>
            <input id="gallerySpeedSpinner"
                   data-title="Slideshow speed"
                   class="translate"
                   name="value">
            <select id="gallerySlideTransition"
                    class="unique translate"
                    data-title="Slide transition">
              <option class="translate"
                      data-content="None"
                      value="false">None</option>
              <option class="translate"
                      data-content="Fade"
                      value="fade">Fade</option>
              <option class="translate"
                      data-content="Slide"
                      value="slide">Slide</option>
              <option class="translate"
                      data-content="Circular"
                      value="circular">Circular</option>
              <option class="translate"
                      data-content="Tube"
                      value="tube">Tube</option>
              <option class="translate"
                      data-content="Zoom"
                      value="zoom-in-out">Zoom-in-out</option>
              <option class="translate"
                      data-content="Rotate"
                      value="rotate">Rotate</option>
            </select>
          </div>
        </fieldset>

        <fieldset class="menuForm ui-widget ui-widget-content ui-corner-all">
          <legend id="helpLegend"
                  data-content="Help"
                  class="ui-corner-top translate">
            Help
          </legend>

          <div class="flex-box">
            <a href="https://framagit.org/yphil/petrolette"
               class="ui-button ui-widget ui-corner-all unique icon-petrolette translate"
yPhil's avatar
yPhil committed
299 300 301 302
               data-title="Source code"
               data-content="Source code"
               title="Source code">
              Source code
yPhil's avatar
yPhil committed
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327
            </a>
            <button id="help"
                    class="grow translate help-button"
                    data-title="What exactly is Pétrolette?"
                    title="What exactly is Pétrolette?"
                    data-content="WtF?">
              WtF?
            </button>
            <a href="https://liberapay.com/yPhil/donate"
               class="ui-button ui-widget ui-corner-all translate last"
               data-title="Send your love to Pétrolette"
               title="Send your love to Pétrolette"
               data-content="Donate">
              Donate
            </a>
            <a href="/about/javascript"
               data-jslicense="1"
               class="ui-button ui-widget ui-corner-all unique translate"
               data-title="JavaScript license information"
               title="JavaScript license information"
               data-content="JS Licences">
              JS Licence info
            </a>
          </div>
        </fieldset>
yPhil's avatar
yPhil committed
328 329 330 331 332 333 334 335

        <fieldset class="menuForm ui-widget ui-widget-content ui-corner-all">
          <legend id="languageLegend"
                  class="ui-corner-top translate"
                  data-content="Console">
            Console
          </legend>
          <div
336
            class="unique"
yPhil's avatar
yPhil committed
337 338 339 340 341
            data-title="Click to toggle"
            title="Click to toggle"
            id="console"></div>
        </fieldset>

yPhil's avatar
yPhil committed
342 343
      </div>
    </nav>
yPhil's avatar
yPhil committed
344

345
    <main>
yPhil's avatar
yPhil committed
346

347
      <div id="tabs">
yPhil's avatar
yPhil committed
348 349 350
        <ul id="tab-names">

        </ul>
351
      </div>
352

yPhil's avatar
yPhil committed
353

354 355 356 357 358 359 360 361 362
      <noscript>
        <div id="no-script">
          <h1>Uh-oh</h1>
          <h3>Pétrolette cannot work without javascript.</h3>
          <ul>
            <li>
              <a href="/about/javascript" data-jslicense="1">JavaScript license information</a>
            </li>
            <li>
yPhil's avatar
yPhil committed
363
              Use the force, read <a href="https://framagit.org/yphil/petrolette">the source</a>.
364 365 366 367 368
            </li>
          </ul>
        </div>
      </noscript>

yPhil's avatar
yPhil committed
369
      <div id="dialogs"></div>
yPhil's avatar
yPhil committed
370

yPhil's avatar
yPhil committed
371
      <span id="backtop">
372 373
        <i class="icon-up"></i>
      </span>
yPhil's avatar
yPhil committed
374 375

      <div id="load-spinner"
yPhil's avatar
yPhil committed
376
           class="dead-center hidden">
yPhil's avatar
yPhil committed
377 378
        <div>
          <i class="icon-arrows-cw spin"></i>
379
          <div>Loading feeds</div>
yPhil's avatar
yPhil committed
380 381 382
        </div>
      </div>

383
    </main>
384

yPhil's avatar
yPhil committed
385
    <script src="/static/js/PTL.util.js"></script>
386
    <script src="/static/js/PTL.tab.js"></script>
387
    <script src="/static/js/PTL.col.js"></script>
388
    <script src="/static/js/PTL.feed.js"></script>
389 390
    <script src="/static/js/PTL.dialog.js"></script>
    <script src="/static/js/PTL.sync.js"></script>
yPhil's avatar
yPhil committed
391

yPhil's avatar
yPhil committed
392
    <script>
yPhil's avatar
yPhil committed
393

394
     $(document).ready(function() {
yPhil's avatar
yPhil committed
395 396 397 398 399
       PTL.start();

       PTL.queryString = '<%= queryString %>';

       PTL.tab.init();
yPhil's avatar
yPhil committed
400

yPhil's avatar
yPhil committed
401
     });
yPhil's avatar
yPhil committed
402

yPhil's avatar
yPhil committed
403

yPhil's avatar
yPhil committed
404
    </script>
yPhil's avatar
yPhil committed
405

yPhil's avatar
yPhil committed
406
  </body>
yPhil's avatar
yPhil committed
407
</html>