Quickstart

Timeline mod

Add a timeline mod to your web page:

  1. Paste the Anymod script in the head of your HTML, just before the closing </head> tag:
<!-- Anymod -->
<script id="Anymod-script">
  (function (m,o,d,u,l,a,r,i,z,e) {
    u[m]={Project:o,rq:[],Opts:r,ready:function(j){u[m].rq.push(j)}};function j(s){return encodeURIComponent(btoa(s))};z=l.getElementById(m+'-'+a);r=u.location;
    e=[d+'/page/'+o+'/'+j(r.pathname)+'/'+j(r.host)+'?t='+Date.now(),d];e.map(function(w){i=l.createElement(a);i.defer=1;i.src=w;z.parentNode.insertBefore(i,z);});
  })('Anymod','8PP6M2','https://cdn.anymod.com/v2',window,document,'script',{});
</script>
<!-- /Anymod -->
1
2
3
4
5
6
7
8
  1. Paste the mod tag inside the <body> of your HTML, wherever you want the mod to show:
<!-- Timeline demo -->
<div id="anymod-oollr"></div>
1
2
  1. When you load your page, a timeline mod appears:

You have just added your very first mod!

TIP

Click the pencil edit on the right, then click the timeline mod above to edit its content.

You can clone this mod into your own project here and make live edits, or simply view it in a jsfiddle.

HTML

The HTML for the above example looks like the following:

<html>

  <head>
    <title>Anymod Quickstart</title>

    <!-- Anymod -->
    <script id="Anymod-script">
      (function (m,o,d,u,l,a,r,i,z,e) {
        u[m]={Project:o,rq:[],Opts:r,ready:function(j){u[m].rq.push(j)}};function j(s){return encodeURIComponent(btoa(s))};z=l.getElementById(m+'-'+a);r=u.location;
        e=[d+'/page/'+o+'/'+j(r.pathname)+'/'+j(r.host)+'?t='+Date.now(),d];e.map(function(w){i=l.createElement(a);i.defer=1;i.src=w;z.parentNode.insertBefore(i,z);});
      })('Anymod','8PP6M2','https://cdn.anymod.com/v2',window,document,'script',{});
    </script>
    <!-- /Anymod -->
  </head>

  <body>
    <!-- Timeline demo -->
    <div id="anymod-oollr"></div>
  </body>

</html>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

See the Examples section for even more examples.

Last Updated: 10/5/2018, 6:32:35 PM