This repository has been archived by the owner on Apr 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
overrides.coffee
46 lines (41 loc) · 1.63 KB
/
overrides.coffee
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
FieldGuide = require 'zooniverse-readymade/lib/field-guide'
FieldGuide::template = (examples) -> "
<div class='readymade-field-guide-tabs'>
#{("
<button id='fg-tab-#{i}' name='readymade-field-guide-tab'>#{page.label}</button>
" for page, i in examples).join '\n'}
</div>
<div class='readymade-field-guide-pages'>
#{("
<div class='readymade-field-guide-page'>
<div class='readymade-field-guide-content'>#{page.content ? ''}</div>
<div class='readymade-field-guide-examples'>
#{("
<div class='readymade-field-guide-example'>
<div class='readymade-field-guide-caption'>#{figure.label}</div>
<img src='#{figure.image}' alt='#{figure.alt}' class='readymade-field-guide-image' />
</div>
" for figure in page.figures).join '\n'}
</div>
</div>
" for page, i in examples).join '\n'}
</div>
"
currentProject = require 'zooniverse-readymade/current-project'
classify_page = currentProject.classifyPages[0]
tag = document.createElement('script')
tag.src = './you_tube_iframe_player.js'
firstScriptTag = document.getElementsByTagName('script')[0]
firstScriptTag.parentNode.insertBefore tag, firstScriptTag
require './show-project-details'
require './show-roi'
require './auto-choose-penguin-tool'
require './limit-marks'
require './show-counts'
require './attribute-background-image'
require './confirm-button-label'
require './task-defaults'
GoogleAnalytics = require 'zooniverse/lib/google-analytics'
analytics = new GoogleAnalytics
account: 'UA-1224199-57'
domain: 'www.penguinwatch.org'