summaryrefslogtreecommitdiff
path: root/im/imdither/index.html
blob: fe4c2e11e5967858e1755334301c8007b22ae17e (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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
    <script src="jquery.min.js"></script>
    <script src="jquery.masonry.min.js"></script>
    <style type="text/css">
      .dithers{
        float: left;
      }
     .master{
       background: yellow;
     }

    
    </style>
  <link href="style.css" rel="stylesheet" type="text/css"></link>
  <script type="text/javascript"  src="jquery.isotope.min.js"></script>
  <script type="text/javascript" src="isotope_config.js"></script>
<!--  <script type="text/javascript"  src="/js/jquery.isotope.min.js"></script>-->
<!--    <script type="text/javascript" src="/js/gallery_isotope_config.js"></script>-->
  <script type="text/javascript"/>
  $(function(){
    $.ajax({
      url: "/cgi-bin/imditherconf.cgi",
      success: function(dithers){
      var ditherbin = document.getElementById("dithers")
      for (i in dithers){
        var ditherWrapper = document.createElement("div");
        ditherWrapper.style.backgroundImage = "url(dithers/"+dithers[i]+")";
        ditherWrapper.style.width = "20";
        ditherWrapper.style.height = "40";

        ditherWrapper.id = dithers[i].replace(/\.[a-zA-Z]$/, "");
        ditherWrapper.className = "dither";
        document.getElementById("dithers").appendChild(ditherWrapper);
      }
        

      },
      dataType: 'json'
    });  
    
  })
    
  </script>
</head>
<body>
  <div id="dithers" class="isotope">
     


  </div>

</body>
</html>