]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Show instructions for using scriptassist instead
authorAilin Nemui <redacted>
Fri, 24 Feb 2017 15:10:17 +0000 (16:10 +0100)
committerAilin Nemui <redacted>
Fri, 24 Feb 2017 15:10:17 +0000 (16:10 +0100)
[skip ci]

assets/css/style.css
index.html

index fe72819da0772ac7daeab44bb3e2f0929917ebbd..302d311bc699b2491bd2ba534dd5d7daf59168e4 100644 (file)
@@ -23,3 +23,12 @@ table.sortable thead {
 table.sortable thead th:hover {
     opacity: 0.8;
 }
+
+div.instructions input {
+    opacity: 0;
+    position: fixed;
+}
+div.instructions label { display: inline; }
+input#manual-instructions:checked ~ dl.automatic-instructions,
+input#automatic-instructions:checked ~ dl.manual-instructions
+{ display: none; }
index 7e870c00331c3a347c0f2e045337cc93c0ff112e..feda0dd24beba8941ab24c5f618fd233bd8d4ffd 100644 (file)
@@ -10,7 +10,31 @@ layout: default
     </div>
 
     <div class="row">
-        <dl>
+      <div class="instructions">
+        <input id="automatic-instructions" type="radio" checked="checked" name="instructions" />
+       <input id="manual-instructions" type="radio" name="instructions" />
+        <dl class="automatic-instructions">
+            <dt>How do I install scripts?</dt>
+            <dd>In Irssi, do <code>/run scriptassist</code> (only once per session), then
+            <code>/script install <i>scriptname</i></code> .
+
+            <dt>How do I rerun scripts?</dt>
+            <dd>Just do <code>/script load <i>scriptname</i></code> .</dd>
+
+            <dt>How do I unload scripts?</dt>
+            <dd>Just do <code>/script unload <i>scriptname</i></code> .</dd>
+
+            <dt>How do I run scripts automatically at startup?</dt>
+            <dd>Just do <code>/script autorun <i>scriptname</i></code> .</dd>
+
+           <dt>Scriptassist does not work for me / I want to do it myself?</dt>
+           <dd><label for="manual-instructions" class="btn-link">
+               View manual instructions.</label></dd>
+
+            <dt>How do I submit a script to this page?</dt>
+            <dd>See information on how to contribute <a href="https://github.com/irssi/scripts.irssi.org">here</a>.</dd>
+        </dl>
+        <dl class="manual-instructions">
             <dt>How do I run scripts?</dt>
             <dd>Put them into <code>~/.irssi/scripts/</code> and in irssi do
             <code>/script load script.pl</code> . There is a default alias for
@@ -32,12 +56,14 @@ layout: default
 
             <dt>Is there an easy way of managing scripts?</dt> <dd>Try
             <code>scriptassist.pl</code>, it can update and manage your scripts
-            as well as install new ones and search the database.</dd>
+            as well as install new ones and search the database.
+           <label for="automatic-instructions" class="btn-link">
+               View instructions when using scriptassist.pl .</label></dd>
 
             <dt>How do I submit a script to this page?</dt>
             <dd>See information on how to contribute <a href="https://github.com/irssi/scripts.irssi.org">here</a>.</dd>
         </dl>
-       
+      </div>
         <hr>
 
         <input type="search" class="light-table-filter form-control" data-table="sortable" data-name="q" placeholder="Filter" style="width: 100%" autocorrect="off" spellcheck="false">
git clone https://git.99rst.org/PROJECT