Sha256: 375b56349eab7dd5251bcdff18c6c5ea0a06c7a66fa60742e6634c966a649811

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

-if Pixelator.run_envs.include?(Rails.env)
  - pixel_types ||= []
  - types = ['all'].concat(pixel_types).concat(@pixel_types || []).uniq
  - @scope ||= ''

  :javascript
    (function() {
      $(document).ready(function() {
        var pixelator = new Pixelator(PIXEL_DATA, '#{@scope}');
        _.each(#{types}, function(p) {
          pixelator.run(p);
        });
      });
    })();
-else
  :javascript
    if (typeof(console) === "object" && typeof(console.log) === "function") {
      console.log("NOTICE: Pixelator is OFF. Go to #{__FILE__} to turn on.\n" +
        "It would run: #{types} for #{@scope}");
    }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pixelator-0.0.1 app/views/shared/_pixelator.html.haml