Init
gzip files removed
11
.gitattributes
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
**/*.gif filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*.webm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*.jpg filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*.m4v filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*.mp3 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*.ogg filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*.eot filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*.woff filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*.ico filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.DS_Store
|
9
README.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
icrc-syria-st-distrib
|
||||||
|
=====================
|
||||||
|
|
||||||
|
Public repo for distribution.
|
||||||
|
|
||||||
|
### Instructions for Client
|
||||||
|
|
||||||
|
- To download zip, click "Clone or download" above
|
||||||
|
- Choose "Download zip"
|
18
ar/index.html
Normal file
BIN
assets/audio/syriast-ambient_call-to-prayer.mp3
(Stored with Git LFS)
Normal file
BIN
assets/audio/syriast-ambient_call-to-prayer.ogg
(Stored with Git LFS)
Normal file
BIN
assets/audio/syriast-ambient_market.mp3
(Stored with Git LFS)
Normal file
BIN
assets/audio/syriast-ambient_market.ogg
(Stored with Git LFS)
Normal file
BIN
assets/audio/syriast-ambient_mopeds.mp3
(Stored with Git LFS)
Normal file
BIN
assets/audio/syriast-ambient_mopeds.ogg
(Stored with Git LFS)
Normal file
BIN
assets/audio/syriast-ambient_music-passing.mp3
(Stored with Git LFS)
Normal file
BIN
assets/audio/syriast-ambient_music-passing.ogg
(Stored with Git LFS)
Normal file
BIN
assets/audio/syriast-ambient_outdoors.mp3
(Stored with Git LFS)
Normal file
BIN
assets/audio/syriast-ambient_outdoors.ogg
(Stored with Git LFS)
Normal file
BIN
assets/audio/syriast-ambient_prayers.mp3
(Stored with Git LFS)
Normal file
BIN
assets/audio/syriast-ambient_prayers.ogg
(Stored with Git LFS)
Normal file
BIN
assets/audio/syriast-ambient_water-boils.mp3
(Stored with Git LFS)
Normal file
BIN
assets/audio/syriast-ambient_water-boils.ogg
(Stored with Git LFS)
Normal file
1
assets/css/style.css
Normal file
BIN
assets/fonts/Crimson_Text/CrimsonText-Bold.eot
(Stored with Git LFS)
Normal file
4180
assets/fonts/Crimson_Text/CrimsonText-Bold.svg
Normal file
After Width: | Height: | Size: 608 KiB |
BIN
assets/fonts/Crimson_Text/CrimsonText-Bold.ttf
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Crimson_Text/CrimsonText-Bold.woff
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Crimson_Text/CrimsonText-BoldItalic.eot
(Stored with Git LFS)
Normal file
2989
assets/fonts/Crimson_Text/CrimsonText-BoldItalic.svg
Normal file
After Width: | Height: | Size: 413 KiB |
BIN
assets/fonts/Crimson_Text/CrimsonText-BoldItalic.ttf
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Crimson_Text/CrimsonText-BoldItalic.woff
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Crimson_Text/CrimsonText-Italic.eot
(Stored with Git LFS)
Normal file
3017
assets/fonts/Crimson_Text/CrimsonText-Italic.svg
Normal file
After Width: | Height: | Size: 413 KiB |
BIN
assets/fonts/Crimson_Text/CrimsonText-Italic.ttf
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Crimson_Text/CrimsonText-Italic.woff
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Crimson_Text/CrimsonText-Roman.eot
(Stored with Git LFS)
Normal file
5718
assets/fonts/Crimson_Text/CrimsonText-Roman.svg
Normal file
After Width: | Height: | Size: 843 KiB |
BIN
assets/fonts/Crimson_Text/CrimsonText-Roman.ttf
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Crimson_Text/CrimsonText-Roman.woff
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Crimson_Text/CrimsonText-Semibold.eot
(Stored with Git LFS)
Normal file
3086
assets/fonts/Crimson_Text/CrimsonText-Semibold.svg
Normal file
After Width: | Height: | Size: 428 KiB |
BIN
assets/fonts/Crimson_Text/CrimsonText-Semibold.ttf
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Crimson_Text/CrimsonText-Semibold.woff
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Crimson_Text/CrimsonText-SemiboldItalic.eot
(Stored with Git LFS)
Normal file
3020
assets/fonts/Crimson_Text/CrimsonText-SemiboldItalic.svg
Normal file
After Width: | Height: | Size: 421 KiB |
BIN
assets/fonts/Crimson_Text/CrimsonText-SemiboldItalic.ttf
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Crimson_Text/CrimsonText-SemiboldItalic.woff
(Stored with Git LFS)
Normal file
93
assets/fonts/Crimson_Text/OFL.txt
Executable file
|
@ -0,0 +1,93 @@
|
||||||
|
Copyright (c) 2010, Sebastian Kosch (sebastian@aldusleaf.org),
|
||||||
|
with Reserved Font Name "Crimson" and "Crimson Text".
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
BIN
assets/fonts/Montserrat/Montserrat-Bold.eot
(Stored with Git LFS)
Normal file
1936
assets/fonts/Montserrat/Montserrat-Bold.svg
Normal file
After Width: | Height: | Size: 113 KiB |
BIN
assets/fonts/Montserrat/Montserrat-Bold.ttf
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Montserrat/Montserrat-Bold.woff
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Montserrat/Montserrat-Regular.eot
(Stored with Git LFS)
Normal file
1747
assets/fonts/Montserrat/Montserrat-Regular.svg
Normal file
After Width: | Height: | Size: 106 KiB |
BIN
assets/fonts/Montserrat/Montserrat-Regular.ttf
(Stored with Git LFS)
Normal file
BIN
assets/fonts/Montserrat/Montserrat-Regular.woff
(Stored with Git LFS)
Normal file
92
assets/fonts/Montserrat/OFL.txt
Executable file
|
@ -0,0 +1,92 @@
|
||||||
|
Copyright (c) 2011-2012, Julieta Ulanovsky (julieta.ulanovsky@gmail.com), with Reserved Font Names 'Montserrat'
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
BIN
assets/images/favicon-114.png
(Stored with Git LFS)
Normal file
BIN
assets/images/favicon-120.png
(Stored with Git LFS)
Normal file
BIN
assets/images/favicon-144.png
(Stored with Git LFS)
Normal file
BIN
assets/images/favicon-152.png
(Stored with Git LFS)
Normal file
BIN
assets/images/favicon-32.png
(Stored with Git LFS)
Normal file
BIN
assets/images/favicon-48.png
(Stored with Git LFS)
Normal file
BIN
assets/images/favicon-57.png
(Stored with Git LFS)
Normal file
BIN
assets/images/favicon-64.png
(Stored with Git LFS)
Normal file
BIN
assets/images/favicon-72.png
(Stored with Git LFS)
Normal file
BIN
assets/images/favicon.ico
(Stored with Git LFS)
Normal file
BIN
assets/images/icrc-fb-share.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/icrc-logo-EN.png
(Stored with Git LFS)
Normal file
BIN
assets/images/icrc-logo-FR.png
(Stored with Git LFS)
Normal file
BIN
assets/images/icrc-syria-st-zoomer-bg-mobile.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/icrc-syriast-bg-cool-left.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/icrc-syriast-bg-cool-right.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/icrc-syriast-bg-warm-left.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/icrc-syriast-bg-warm-right.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/icrc-syriast-bg-white-left.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/icrc-syriast-bg-white-right.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/syria/00.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/syria/01.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/syria/02.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/syria/03.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/syria/04.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/syria/05.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/syria/06.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/syria/07.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/syria/08.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/syria/09.jpg
(Stored with Git LFS)
Normal file
1
assets/js/components/example.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
define("example",["queue"],function(e){function n(){this.name="Example"}return n});
|
1
assets/js/components/helpers.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
define("helpers",[],function(e){});
|
1
assets/js/components/social.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
define("social",["jquery"],function(t){var e={};return e.facebook={share:function(t){var t=t||window.location.href,e=window.open("https://www.facebook.com/sharer/sharer.php?u="+t,"popupwindow","scrollbars=yes,width=800,height=400");e.focus()},feed:function(){FB.ui({method:"feed",name:"",link:"",picture:"",caption:"",description:""},function(t){t&&t.post_id})}},e.twitter={share:function(t){twttr.ready(function(t){t.events.bind("tweet",function(t){})});var e=window.open("https://twitter.com/intent/tweet?text="+t,"popupwindow","scrollbars=yes,width=800,height=400");e.focus()}},e});
|
1
assets/js/components/zoomer.js
Normal file
5
assets/js/lib/d3.js
vendored
Normal file
1
assets/js/lib/inline-video.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
define("makeVideoPlayableInline",[],function(){var e=function(){"use strict";function e(e,n,r,i){function t(r){d=n(t,i),e(r-(a||r)),a=r}var d,a;return{start:function(){d||t(0)},stop:function(){r(d),d=null,a=0}}}function n(n){return e(n,requestAnimationFrame,cancelAnimationFrame)}function r(e,n,r,i){function t(n){Boolean(e[r])===Boolean(i)&&n.stopImmediatePropagation(),delete e[r]}return e.addEventListener(n,t,!1),t}function i(e,n,r,i){function t(){return r[n]}function d(e){r[n]=e}i&&d(e[n]),Object.defineProperty(e,n,{get:t,set:d})}function t(e,n,r){r.addEventListener(n,function(){return e.dispatchEvent(new Event(n))})}function d(e,n){Promise.resolve().then(function(){e.dispatchEvent(new Event(n))})}function a(e){var n=new Audio;return t(e,"play",n),t(e,"playing",n),t(e,"pause",n),n.crossOrigin=e.crossOrigin,n.src=e.src||e.currentSrc||"data:",n}function o(e,n,r){(m||0)+200<Date.now()&&(e[b]=!0,m=Date.now()),r||(e.currentTime=n),A[++k%3]=100*n|0}function u(e){return e.driver.currentTime>=e.video.duration}function s(e){var n=this;n.video.readyState>=n.video.HAVE_FUTURE_DATA?(n.hasAudio||(n.driver.currentTime=n.video.currentTime+e*n.video.playbackRate/1e3,n.video.loop&&u(n)&&(n.driver.currentTime=0)),o(n.video,n.driver.currentTime)):n.video.networkState!==n.video.NETWORK_IDLE||n.video.buffered.length||n.video.load(),n.video.ended&&(delete n.video[b],n.video.pause(!0))}function c(){var e=this,n=e[h];return e.webkitDisplayingFullscreen?void e[E]():("data:"!==n.driver.src&&n.driver.src!==e.src&&(o(e,0,!0),n.driver.src=e.src),void(e.paused&&(n.paused=!1,e.buffered.length||e.load(),n.driver.play(),n.updater.start(),n.hasAudio||(d(e,"play"),n.video.readyState>=n.video.HAVE_ENOUGH_DATA&&d(e,"playing")))))}function v(e){var n=this,r=n[h];r.driver.pause(),r.updater.stop(),n.webkitDisplayingFullscreen&&n[T](),r.paused&&!e||(r.paused=!0,r.hasAudio||d(n,"pause"),n.ended&&(n[b]=!0,d(n,"ended")))}function p(e,r){var i=e[h]={};i.paused=!0,i.hasAudio=r,i.video=e,i.updater=n(s.bind(i)),r?i.driver=a(e):(e.addEventListener("canplay",function(){e.paused||d(e,"playing")}),i.driver={src:e.src||e.currentSrc||"data:",muted:!0,paused:!0,pause:function(){i.driver.paused=!0},play:function(){i.driver.paused=!1,u(i)&&o(e,0)},get ended(){return u(i)}}),e.addEventListener("emptied",function(){var n=!i.driver.src||"data:"===i.driver.src;i.driver.src&&i.driver.src!==e.src&&(o(e,0,!0),i.driver.src=e.src,n?i.driver.play():i.updater.stop())},!1),e.addEventListener("webkitbeginfullscreen",function(){e.paused?r&&!i.driver.buffered.length&&i.driver.load():(e.pause(),e[E]())}),r&&(e.addEventListener("webkitendfullscreen",function(){i.driver.currentTime=e.currentTime}),e.addEventListener("seeking",function(){A.indexOf(100*e.currentTime|0)<0&&(i.driver.currentTime=e.currentTime)}))}function l(e){var n=e[h];e[E]=e.play,e[T]=e.pause,e.play=c,e.pause=v,i(e,"paused",n.driver),i(e,"muted",n.driver,!0),i(e,"playbackRate",n.driver,!0),i(e,"ended",n.driver),i(e,"loop",n.driver,!0),r(e,"seeking"),r(e,"seeked"),r(e,"timeupdate",b,!1),r(e,"ended",b,!1)}function f(e,n,r){void 0===n&&(n=!0),void 0===r&&(r=!0),r&&!g||e[h]||(p(e,n),l(e),e.classList.add("IIV"),!n&&e.autoplay&&e.play(),/iPhone|iPod|iPad/.test(navigator.platform)||console.warn("iphone-inline-video is not guaranteed to work in emulated environments"))}var m,y="undefined"==typeof Symbol?function(e){return"@"+(e||"@")+Math.random()}:Symbol,g=/iPhone|iPod/i.test(navigator.userAgent)&&!matchMedia("(-webkit-video-playable-inline)").matches,h=y(),b=y(),E=y("nativeplay"),T=y("nativepause"),A=[],k=0;return f.isWhitelisted=g,f}();return e});
|
1
assets/js/lib/jquery.isInViewport.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
!function(n,e){function t(e){var t,r=n("<div></div>").css({width:"100%"});return e.append(r),t=e.width()-r.width(),r.remove(),t}function r(o,i){var a=o.getBoundingClientRect(),s=a.top,c=a.bottom,u=a.left,l=a.right,d=n.extend({tolerance:0,viewport:e},i),f=!1,p=d.viewport.jquery?d.viewport:n(d.viewport);p.length||(console.warn("isInViewport: The viewport selector you have provided matches no element on page."),console.warn("isInViewport: Defaulting to viewport as window"),p=n(e));var w=p.height(),h=p.width(),v=p[0].toString();if(p[0]!==e&&"[object Window]"!==v&&"[object DOMWindow]"!==v){var g=p[0].getBoundingClientRect();s-=g.top,c-=g.top,u-=g.left,l-=g.left,r.scrollBarWidth=r.scrollBarWidth||t(p),h-=r.scrollBarWidth}return d.tolerance=~~Math.round(parseFloat(d.tolerance)),d.tolerance<0&&(d.tolerance=w+d.tolerance),l<=0||u>=h?f:f=d.tolerance?s<=d.tolerance&&c>=d.tolerance:c>0&&s<=w}String.prototype.hasOwnProperty("trim")||(String.prototype.trim=function(){return this.replace(/^\s*(.*?)\s*$/,"$1")});var o=function(e){if(1===arguments.length&&"function"==typeof e&&(e=[e]),!(e instanceof Array))throw new SyntaxError("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions");for(var t=0;t<e.length;t++)if("function"==typeof e[t])for(var r=0;r<this.length;r++)e[t].call(n(this[r]));else console.warn("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions"),console.warn("isInViewport: Ignoring non-function values in array and moving on");return this};n.fn.do=function(n){return console.warn("isInViewport: .do is deprecated as it causes issues in IE and some browsers since it's a reserved word. Use $.fn.run instead i.e., $(el).run(fn)."),o(n)},n.fn.run=o;var i=function(e){if(e){var t=e.split(",");return 1===t.length&&isNaN(t[0])&&(t[1]=t[0],t[0]=void 0),{tolerance:t[0]?t[0].trim():void 0,viewport:t[1]?n(t[1].trim()):void 0}}return{}};n.extend(n.expr[":"],{"in-viewport":n.expr.createPseudo?n.expr.createPseudo(function(n){return function(e){return r(e,i(n))}}):function(n,e,t){return r(n,i(t[3]))}}),n.fn.isInViewport=function(n){return this.filter(function(e,t){return r(t,n)})}}(jQuery,window);
|
3
assets/js/lib/jquery.js
vendored
Normal file
1
assets/js/lib/jquery.jscroll.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
!function(t){"use strict";t.jscroll={defaults:{debug:!1,autoTrigger:!0,autoTriggerUntil:!1,loadingHtml:"<small>Loading...</small>",loadingFunction:!1,padding:0,nextSelector:"a:last",contentSelector:"",pagingSelector:"",callback:!1}};var n=function(n,e){var l=n.data("jscroll"),o="function"==typeof e?{callback:e}:e,r=t.extend({},t.jscroll.defaults,o,l||{}),i="visible"===n.css("overflow-y"),c=n.find(r.nextSelector).first(),a=t(window),s=t("body"),d=i?a:n,f=t.trim(c.attr("href")+" "+r.contentSelector),g=function(){var n=t(r.loadingHtml).filter("img").attr("src");if(n){var e=new Image;e.src=n}},u=function(){n.find(".jscroll-inner").length||n.contents().wrapAll('<div class="jscroll-inner" />')},p=function(t){var n;r.pagingSelector?t.closest(r.pagingSelector).hide():(n=t.parent().not(".jscroll-inner,.jscroll-added").addClass("jscroll-next-parent").hide(),n.length||t.wrap('<div class="jscroll-next-parent" />').parent().hide())},j=function(){return d.unbind(".jscroll").removeData("jscroll").find(".jscroll-inner").children().unwrap().filter(".jscroll-added").children().unwrap()},h=function(){if(n.is(":visible")){u();var t=n.find("div.jscroll-inner").first(),e=n.data("jscroll"),l=parseInt(n.css("borderTopWidth"),10),o=isNaN(l)?0:l,c=parseInt(n.css("paddingTop"),10)+o,a=i?d.scrollTop():n.offset().top,s=t.length?t.offset().top:0,f=Math.ceil(a-s+d.height()+c);if(!e.waiting&&f+r.padding>=t.outerHeight())return w("info","jScroll:",t.outerHeight()-f,"from bottom. Loading next request..."),m()}},v=function(t){return t=t||n.data("jscroll"),t&&t.nextHref?(b(),!0):(w("warn","jScroll: nextSelector not found - destroying"),j(),!1)},b=function(){var e=n.find(r.nextSelector).first();if(e.length)if(r.autoTrigger&&(r.autoTriggerUntil===!1||r.autoTriggerUntil>0)){p(e);var l=s.height()-n.offset().top,o=n.height()<l?n.height():l,i=n.offset().top-a.scrollTop()>0?a.height()-(n.offset().top-t(window).scrollTop()):a.height();o<=i&&h(),d.unbind(".jscroll").bind("scroll.jscroll",function(){return h()}),r.autoTriggerUntil>0&&r.autoTriggerUntil--}else d.unbind(".jscroll"),e.bind("click.jscroll",function(){return p(e),m(),!1})},m=function(){var e=n.find("div.jscroll-inner").first(),l=n.data("jscroll");return l.waiting=!0,e.append('<div class="jscroll-added" />').children(".jscroll-added").last().html('<div class="jscroll-loading" id="jscroll-loading">'+r.loadingHtml+"</div>").promise().done(function(){r.loadingFunction&&r.loadingFunction()}),n.animate({scrollTop:e.outerHeight()},0,function(){e.find("div.jscroll-added").last().load(l.nextHref,function(e,o){if("error"===o)return j();var i=t(this).find(r.nextSelector).first();l.waiting=!1,l.nextHref=!!i.attr("href")&&t.trim(i.attr("href")+" "+r.contentSelector),t(".jscroll-next-parent",n).remove(),v(),r.callback&&r.callback.call(this),w("dir",l)})})},w=function(t){if(r.debug&&"object"==typeof console&&("object"==typeof t||"function"==typeof console[t]))if("object"==typeof t){var n=[];for(var e in t)"function"==typeof console[e]?(n=t[e].length?t[e]:[t[e]],console[e].apply(console,n)):console.log.apply(console,n)}else console[t].apply(console,Array.prototype.slice.call(arguments,1))};return n.data("jscroll",t.extend({},l,{initialized:!0,waiting:!1,nextHref:f})),u(),g(),b(),t.extend(n.jscroll,{destroy:j}),n};t.fn.jscroll=function(e){return this.each(function(){var l,o=t(this),r=o.data("jscroll");r&&r.initialized||(l=new n(o,e))})}}(jQuery);
|
1
assets/js/lib/jquery.lazyloadxt.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
!function(e,t,o,n){function a(e,t){return e[t]===n?y[t]:e[t]}function i(){var e=t.pageYOffset;return e===n?m.scrollTop:e}function r(e,t){var o=y["on"+e];o&&(z(o)?o.call(t[0]):(o.addClass&&t.addClass(o.addClass),o.removeClass&&t.removeClass(o.removeClass))),t.trigger("lazy"+e,[t]),d()}function l(t){r(t.type,e(this).off(h,l))}function s(o){if(I.length){o=o||y.forceLoad,T=1/0;var n,a,s=i(),c=t.innerHeight||m.clientHeight,d=t.innerWidth||m.clientWidth;for(n=0,a=I.length;n<a;n++){var f,u=I[n],v=u[0],p=u[A],C=!1,w=o||b(v,g)<0;if(e.contains(m,v)){if(o||!p.visibleOnly||v.offsetWidth||v.offsetHeight){if(!w){var E=v.getBoundingClientRect(),B=p.edgeX,L=p.edgeY;f=E.top+s-L-c,w=f<=s&&E.bottom>-L&&E.left<=d+B&&E.right>-B}if(w){u.on(h,l),r("show",u);var X=p.srcAttr,k=z(X)?X(u):v.getAttribute(X);k&&(v.src=k),C=!0}else f<T&&(T=f)}}else C=!0;C&&(b(v,g,0),I.splice(n--,1),a--)}a||r("complete",e(m))}}function c(){B>1?(B=1,s(),setTimeout(c,y.throttle)):B=0}function d(e){I.length&&(e&&"scroll"===e.type&&e.currentTarget===t&&T>=i()||(B||setTimeout(c,0),B=2))}function f(){w.lazyLoadXT()}function u(){s(!0)}var A="lazyLoadXT",g="lazied",h="load error",v="lazy-hidden",m=o.documentElement||o.body,p=t.onscroll===n||!!t.operamini||!m.getBoundingClientRect,y={autoInit:!0,selector:"img[data-src]",blankImage:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",throttle:99,forceLoad:p,loadEvent:"pageshow",updateEvent:"load orientationchange resize scroll touchmove focus",forceEvent:"lazyloadall",oninit:{removeClass:"lazy"},onshow:{addClass:v},onload:{removeClass:v,addClass:"lazy-loaded"},onerror:{removeClass:v},checkDuplicates:!0},C={srcAttr:"data-src",edgeX:0,edgeY:0,visibleOnly:!0},w=e(t),z=e.isFunction,E=e.extend,b=e.data||function(t,o){return e(t).data(o)},I=[],T=0,B=0;e[A]=E(y,C,e[A]),e.fn[A]=function(o){o=o||{};var n,i=a(o,"blankImage"),l=a(o,"checkDuplicates"),s=a(o,"scrollContainer"),c=a(o,"show"),f={};e(s).on("scroll",d);for(n in C)f[n]=a(o,n);return this.each(function(n,a){if(a===t)e(y.selector).lazyLoadXT(o);else{var s=l&&b(a,g),u=e(a).data(g,c?-1:1);if(s)return void d();i&&"IMG"===a.tagName&&!a.src&&(a.src=i),u[A]=E({},f),r("init",u),I.push(u),d()}})},e(o).ready(function(){r("start",w),w.on(y.updateEvent,d).on(y.forceEvent,u),e(o).on(y.updateEvent,d),y.autoInit&&(w.on(y.loadEvent,f),f())})}(window.jQuery||window.Zepto||window.$,window,document);
|
1
assets/js/lib/queue.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
!function(){function n(n){function e(){for(;r=a<c.length&&p<n;){var u=a++,e=c[u],o=t.call(e,1);o.push(l(u)),++p,e[0].apply(null,o)}}function l(n){return function(u,t){--p,null==s&&(null!=u?(s=u,a=d=NaN,o()):(c[n]=t,--d?r||e():o()))}}function o(){null!=s?h(s):f?h(s,c):h.apply(null,[s].concat(c))}var i,r,f,c=[],a=0,p=0,d=0,s=null,h=u;return n||(n=1/0),i={defer:function(){return s||(c.push(arguments),++d,e()),i},await:function(n){return h=n,f=!1,d||o(),i},awaitAll:function(n){return h=n,f=!0,d||o(),i}}}function u(){}var t=[].slice;n.version="1.0.7","function"==typeof define&&define.amd?define(function(){return n}):"object"==typeof module&&module.exports?module.exports=n:this.queue=n}();
|
1
assets/js/lib/remodal.js
Normal file
1
assets/js/lib/scrollMonitor.js
Normal file
1
assets/js/lib/underscore.js
Normal file
1
assets/js/main.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
requirejs.config({baseUrl:"/assets/js",paths:{queue:"lib/queue",jquery:"lib/jquery",d3:"lib/d3",underscore:"lib/underscore",scrollMonitor:"lib/scrollMonitor",remodal:"lib/remodal",makeVideoPlayableInline:"lib/inline-video",zoomer:"components/zoomer",social:"components/social"},shim:{"lib/jquery.jscroll":["jquery"]}}),require(["jquery","underscore","queue","zoomer","scrollMonitor","makeVideoPlayableInline","remodal","social"],function(e,o,a,t,i,r,n,s){function l(o){var o=o||{top:0,bottom:0};e(g).each(function(a,t){var r=i.create(t,o);r.fullyEnterViewport(function(o){var a=e(r.watchItem).find(".ambient-audio-controller"),t=(a.find(".ambient-audio-controller__state"),a.find("audio")),i=t[0];a.addClass("pulse"),setTimeout(function(){a.removeClass("pulse")},1e3),0==i.paused?t.animate({volume:0},1e3,"swing",function(){i.pause()}):(i.play(),t.animate({volume:.5},1e3))}),r.exitViewport(function(o){var a=e(r.watchItem).find(".ambient-audio-controller"),t=(a.find(".ambient-audio-controller__state"),a.find("audio")),i=t[0];t.animate({volume:0},1e3,"swing",function(){i.pause()})})})}function c(){var e=(a(1),["broll-coffee","broll-syria-st-view-from-jabal","person-abbas","broll-abbas-shophelpers","broll-syria-st-hole","person-zaynab-portrait","broll-jabal-view-from-tabbaneh-lc","person-ahmad-CU","person-samir","broll-syria-st-median-west-lc","broll-syria-st-tanks","person-ahmad-MED","portrait-top-left","portrait-top-middle","portrait-top-right","portrait-bottom-left","portrait-bottom-middle","portrait-bottom-right","person-hana-2","broll-syria-st-army-truck-lc","broll-syria-st-chickens","person-nisrine-2","person-nisrine-family","broll-shot-window","person-alaa-mohanna","broll-syria-st-business"]);e.forEach(function(e){u(e)})}function u(o,a){var t="http://icrc-syria-st-staging.s3-website-us-west-1.amazonaws.com/assets/videos/"+o+".gif",i=new Image;i.src=t,console.log("loadGif",o),i.onload=function(){console.log("Image ready",o);var t=e('video.video-cinemagraph[poster*="'+o+'"]');if(t.length){var i=t.attr("poster").replace(".jpg",".gif");t.replaceWith('<img src="'+i+'" class="video-cinemagraph"/>')}var r=e('video.video-cinemagraph-cover[poster*="'+o+'"]');if(r.length){var i=r.attr("poster").replace(".jpg",".gif");r.replaceWith('<img src="'+i+'" class="video-cinemagraph-cover"/>')}a&&a(null,o)}}function d(e,o){e.muted?(e.muted=!1,o.removeClass("on off").addClass("on")):(e.muted=!0,o.removeClass("on off").addClass("off"))}function m(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry/.test(navigator.userAgent)}function f(){return p()}function p(){return m()&&!b()}function b(){return navigator.userAgent.match(/(iPad|iPhone);.*CPU.*OS [8|9|10]_\d/i)&&navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("CriOS")==-1||navigator.userAgent.indexOf("Twitter")>-1}var h=document.querySelectorAll(".ambient-audio-controller"),v=e(h),g=document.querySelectorAll(".panel-audio"),y=(e(g),document.querySelectorAll(".video-cinemagraph")),w=e(y),C=e("#share-facebook"),q=e("#share-twitter");document.addEventListener("DOMContentLoaded",function(e){console.log("isMobile, isLegacyMobile, isModernMobile",m(),f(),b())}),C.on("click",function(){s.facebook.share()}),q.on("click",function(){var o=e(this),a=o.data("share-text");s.twitter.share(a)}),e(".video-cinemagraph-cover").each(function(e,o){r(this)}),e(y).each(function(e,o){if(m())o.setAttribute("autoplay",""),r(this);else{var a=i.create(o);a.enterViewport(function(e){a.watchItem.play()}),a.exitViewport(function(e){a.watchItem.paused||a.watchItem.pause()})}}),m()||l(),m()||v.on("click",function(o){var a=e(this).find("audio")[0],t=e(this).find(".ambient-audio-controller__state");d(a,t)}),m&&(v.removeAttr("loop"),v.on("click",function(o){var a=e(this).find("audio"),t=a[0],i=e(this).find(".ambient-audio-controller__state");t.paused?(i.removeClass("on off").addClass("on"),t.play(),a.animate({volume:.5},1e3)):(i.removeClass("on off").addClass("off"),a.animate({volume:0},1e3,"swing",function(){t.pause()}))})),m()&&w.on("touchstart",function(o){var a=e(this)[0];a.paused&&a.play()}),t(),m()&&c()});
|
1
assets/js/require.js
Normal file
6
assets/svg/facebook.svg
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generated by IcoMoon.io -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="28" viewBox="0 0 16 28">
|
||||||
|
<path d="M14.984 0.187v4.125h-2.453c-1.922 0-2.281 0.922-2.281 2.25v2.953h4.578l-0.609 4.625h-3.969v11.859h-4.781v-11.859h-3.984v-4.625h3.984v-3.406c0-3.953 2.422-6.109 5.953-6.109 1.687 0 3.141 0.125 3.563 0.187z"></path>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 542 B |