Permalink
Browse files

index.html: added vectorscope, check for compatibility on each plugin

  • Loading branch information...
brianchirls committed Aug 10, 2012
1 parent fbcf3d6 commit 195b5294e141194c495d54aa5338eb3e33ac9545
Showing with 8 additions and 5 deletions.
  1. +8 −5 index.html
View
@@ -23,6 +23,7 @@
<script type="text/javascript" src="effects/seriously.ripple.js"></script>
<script type="text/javascript" src="effects/seriously.sepia.js"></script>
<script type="text/javascript" src="effects/seriously.tone.js"></script>
+ <script type="text/javascript" src="effects/seriously.vectorscope.js"></script>
<script type="text/javascript" src="effects/seriously.vignette.js"></script>
<script type="text/javascript" src="effects/seriously.split.js"></script>
<style>
@@ -80,11 +81,13 @@
active;
for (e in effects) {
- effect = effects[e];
- element = document.createElement('option');
- element.value = e;
- element.appendChild(document.createTextNode(effect.title));
- select.appendChild(element);
+ if (!Seriously.incompatible(e)) {
+ effect = effects[e];
+ element = document.createElement('option');
+ element.value = e;
+ element.appendChild(document.createTextNode(effect.title));
+ select.appendChild(element);
+ }
}
source = s.source(img);

0 comments on commit 195b529

Please sign in to comment.