Commit 7ff29265 authored by mntmn's avatar mntmn
Browse files

initial commit.

parents
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="1482.219px" height="1000px" viewBox="0 0 1482.219 1000" enable-background="new 0 0 1482.219 1000" xml:space="preserve">
<g id="Ebene_1_1_" display="none">
<path display="inline" fill="#489BD5" stroke="#F5F5F5" stroke-width="40" stroke-miterlimit="10" d="M1198.1,678.645
c-3.479-11.025-72.598-227.894-136.552-269.768c-0.203-0.271-0.405-0.546-0.612-0.802c-18.067-22.217-54.729-35.824-95.578-40.838
c-1.045-4.748-2.684-8.63-4.965-10.745c-1.859-1.726-4.205-3.24-6.896-4.562c0.003-0.041,0.006-0.08,0.008-0.121
c36.723-39.124,67.541-127.961,63.088-187.536c-1.222-16.344-4.889-29.706-10.361-40.601c0.066-1.215,0.07-2.45-0.014-3.714
c-1.652-25.371-13.021-38.877-30.91-45.644c-15.152-18.638-47.624-31.345-82.704-29.053c-37.004,2.416-65.922,20.8-75.777,42.672
c-13.468,9.271-21.062,23.464-19.609,45.67c0.166,2.544,0.632,4.948,1.37,7.219c-2.911,10.259-4.102,22.182-3.062,36.057
c3.205,42.908,26.104,99.075,54.188,140.044c-1.261,0.675-2.56,1.314-3.896,1.892c-3.008,1.293-5.979,1.99-8.838,2.072
c-10.912,0.314-17.149-8.476-17.217-8.563l-2.057,1.247c6.309,12,21.385,16.999,30.145,16.745
c1.396-0.041,6.106,0.383,12.015,0.445c7.17,9.104,14.549,17.076,21.922,23.503c-1.034,0.703-2,1.439-2.853,2.228
c-2.754,2.554-4.574,7.67-5.537,13.791c-32.92,6.519-61.259,19.111-76.448,37.792c-22.34,27.469-17.562,140.967-8.207,241.104
l-354.394-45.882l54.211,288.35l381.396,62.204l139.196-103.732c-1.062,3.491-1.646,6.868-1.646,10.045
c0,28.216,33.431,30.006,63.525,30.006c30.096-0.002,54.489-22.875,54.489-51.088c0-3.146-0.164-6.213-0.479-9.197
c3.776-3.562,5.916-6.071,5.916-6.071L1198.1,678.645z M1058.916,790.071c4.574-37.48,15.095-130.188,18.531-215.626
l55.771,108.627L1058.916,790.071z"/>
</g>
<path fill="#3880A8" d="M1046.778,852.009c0,0-33.005,46.755-116.854,46.755c-80.219,0-111.363-39.827-111.363-39.827
s-22.362-284.349-24.272-398.131c48.664-59.836,226.619-59.836,275.286,0C1030.186,535.59,1046.778,852.009,1046.778,852.009z"/>
<path fill="#3880A8" d="M1198.225,719.612l-33.863,2.625L1005.67,465.285c0,0,46.729-13.553,63.903-4.48
C1106.682,531.09,1198.225,719.612,1198.225,719.612z"/>
<path fill="#3880A8" d="M1087.183,838.573c0,0-54.277,59.114-11.254,56.479c30.657-1.876,55.026-30.527,55.026-30.527l67.27-144.91
l-51.396-26.331l12.353,23.799L1087.183,838.573z"/>
<path fill="#64BEEF" d="M951.784,426.649c-8.203,16.851-52.122,18.725-63.313,0c-0.658-15.149-0.829-38.817-7.5-59.41
c12.312-16.646,65.005-17.396,77.313-0.75C948.775,387.084,950.896,396.168,951.784,426.649z"/>
<path fill="#43A2E3" d="M881.562,366.489l-0.592,0.746c14.487,18.977,67.426,16.826,77.313-0.745
C946.162,350.098,894.881,350.575,881.562,366.489z"/>
<polygon fill="#E8C669" points="914.678,474.499 913.486,474.499 907.35,372.135 920.812,372.135 "/>
<polygon fill="#D1D1D1" points="907.447,1000 526.054,937.796 700.184,810.046 1087.602,866.226 "/>
<g>
<polygon fill="#BDBDBD" points="580.317,923.299 705.71,832.489 1032.723,879.911 902.027,975.77 "/>
</g>
<polygon opacity="0.2" fill="#43A2E3" enable-background="new " points="907.447,1000 546.054,917.796 866.693,786.076
971.688,817.574 "/>
<polygon fill="#D1D1D1" points="907.447,1000 526.054,937.796 455.573,562.908 883.193,567.088 "/>
<g>
<polygon fill="#FFFFFF" points="606.099,740.38 614.532,795.093 668.56,768.994 "/>
<polygon fill="#FFFFFF" points="748.491,797.98 740.053,743.246 686.029,769.359 "/>
<polygon fill="#FFFFFF" points="676.07,760.441 731.793,730.562 666.442,698.07 610.486,727.945 "/>
<polygon fill="#FFFFFF" points="688.308,839.822 744.031,809.943 678.681,777.451 622.724,807.326 "/>
</g>
<path fill="#64BEEF" d="M932.164,550.878c28.444,2.622,57.444,7.622,82.444-6.378c3-1,1-11,1-17c-28,3-56,2-83.896,2.457
L932.164,550.878z"/>
<path fill="#64BEEF" d="M1130.116,868.584c-5.508-26.084-27.508-44.084-54.508-38.084c15-16,38-20,54-2c5,6,9,12,11,20c0,3,1,6,0,8
c-2,5-8,6-9.812,10.686C1130.379,868.047,1130.116,868.584,1130.116,868.584z"/>
<circle fill="#FFFFFF" cx="971.688" cy="540.718" r="4.256"/>
<polygon opacity="0.3" fill="#64BEEF" enable-background="new " points="931.93,556.5 938.275,621.166 978.942,643.166
1018.942,620.5 1016.263,553.933 "/>
<path fill="#F4DA73" d="M1129.252,881.798c0.623-28.207-11.218-51.349-41.302-52.015c-30.083-0.666-76.525,42.271-77.15,70.479
c-0.624,28.208,32.758,30.737,62.849,31.403C1103.733,932.331,1128.628,910.003,1129.252,881.798z"/>
<path fill="#E8C669" d="M945.007,376.335c4.116-10.04,2.2-52.529-2.905-58.859c-9.494-11.772-39.325-11.772-48.817,0
c-5.175,6.419-2.647,50.034,1.944,59.268C910.115,382.148,931.036,381.709,945.007,376.335z"/>
<path fill="#F4DA73" d="M796.679,153.151c5.548,87.657,72.521,219.17,119.438,215.556c46.917-3.613,98.451-142.188,92.897-229.846
c-5.548-87.66-63.541-99.866-110.459-96.253C851.639,46.224,791.129,65.491,796.679,153.151z"/>
<path opacity="0.3" fill="#DDC885" enable-background="new " d="M806.148,207.875c2.161-0.57,4.342-1.123,6.539-1.656
C782.276,83.167,1005.67,82.5,992.878,196.709c-0.362,3.23,0.307,6.589,0.331,10c3.607,0.899,7.17,1.848,10.674,2.849
c4.471-24.989,6.477-49.48,5.132-70.697c-5.548-87.66-63.541-99.866-110.459-96.253C851.639,46.223,791.129,65.49,796.679,153.15
C797.746,170.03,801.106,188.723,806.148,207.875z"/>
<path fill="#040504" d="M800.835,308.09l2.329-1.414c0.072,0.1,7.147,10.062,19.518,9.706c3.235-0.095,6.607-0.884,10.02-2.35
c6.596-2.837,12.315-6.925,17.363-10.534c6.789-4.852,12.648-9.04,18.868-9.218c14.089-0.407,20.259,10.047,17.557,19.384
C881.207,331.898,815.732,331.644,800.835,308.09z"/>
<path fill="#040504" d="M981.224,303.056l-2.409-1.275c-0.062,0.104-6.547,10.459-18.916,10.813
c-3.237,0.095-6.648-0.501-10.14-1.769c-6.748-2.449-12.698-6.202-17.94-9.514c-7.058-4.452-13.15-8.295-19.37-8.114
c-14.089,0.405-19.648,11.198-16.409,20.364C902.364,331.463,966.714,326.624,981.224,303.056z"/>
<path fill="#F4DA73" d="M912.526,261.812c0,11.85-10.909,23.403-24.367,23.403s-24.367-11.554-24.367-23.403H912.526z"/>
<ellipse fill="#040504" cx="847.061" cy="200.884" rx="8.156" ry="9.624"/>
<ellipse fill="#040504" cx="940.038" cy="200.883" rx="8.152" ry="9.621"/>
<path fill="#F4DA73" d="M1008.556,247.511c-8.06,0.312-14.74-3-15.091-11.688c-0.354-8.684,11.674-22.297,19.73-22.608
c8.062-0.312,8.964,9.318,9.314,18.005C1022.863,239.905,1016.613,247.199,1008.556,247.511z"/>
<path fill="#F4DA73" d="M805.088,252.838c8.063-0.108,14.562-3.768,14.457-12.46c-0.104-8.69-12.823-21.655-20.888-21.545
s-8.464,9.774-8.359,18.467C790.401,245.992,797.023,252.949,805.088,252.838z"/>
<path fill="#E56373" d="M798.302,104.1c1.98,35.81,47.749,47.342,103.185,43.071c55.438-4.271,99.548-22.729,97.562-58.54
c-3.316-59.984-47.188-61.479-103.957-57.105C840.993,35.694,794.982,44.115,798.302,104.1z"/>
<path fill="#EB6874" d="M813.698,73.452c1.825,33.041,39.354,44.045,84.702,40.554c45.353-3.493,81.343-20.161,79.517-53.202
c-1.827-33.04-42.643-60.333-87.989-56.839C844.579,7.46,811.869,40.413,813.698,73.452z"/>
</svg>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 17.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="1482.219px" height="1000px" viewBox="0 0 1482.219 1000" enable-background="new 0 0 1482.219 1000" xml:space="preserve">
<ellipse fill="#67C4F9" cx="740.609" cy="562.167" rx="3" ry="7.333"/>
<g id="Ebene_1_1_" display="none">
<path display="inline" fill="#489BD5" stroke="#F5F5F5" stroke-width="40" stroke-miterlimit="10" d="M1198.1,678.645
c-3.479-11.025-72.598-227.894-136.552-269.768c-0.203-0.271-0.405-0.546-0.612-0.802c-18.067-22.217-54.729-35.824-95.578-40.838
c-1.045-4.748-2.684-8.63-4.965-10.745c-1.859-1.726-4.205-3.24-6.896-4.562c0.003-0.041,0.006-0.08,0.008-0.121
c36.723-39.124,67.541-127.961,63.088-187.536c-1.222-16.344-4.889-29.706-10.361-40.601c0.066-1.215,0.07-2.45-0.014-3.714
c-1.652-25.371-13.021-38.877-30.91-45.644c-15.152-18.638-47.624-31.345-82.704-29.053c-37.004,2.416-65.922,20.8-75.777,42.672
c-13.468,9.271-21.062,23.464-19.609,45.67c0.166,2.544,0.632,4.948,1.37,7.219c-2.911,10.259-4.102,22.182-3.062,36.057
c3.205,42.908,26.104,99.075,54.188,140.044c-1.261,0.675-2.56,1.314-3.896,1.892c-3.008,1.293-5.979,1.99-8.838,2.072
c-10.912,0.314-17.149-8.476-17.217-8.563l-2.057,1.247c6.309,12,21.385,16.999,30.145,16.745
c1.396-0.041,6.106,0.383,12.015,0.445c7.17,9.104,14.549,17.076,21.922,23.503c-1.034,0.703-2,1.439-2.853,2.228
c-2.754,2.554-4.574,7.67-5.537,13.791c-32.92,6.519-61.259,19.111-76.448,37.792c-22.34,27.469-17.562,140.967-8.207,241.104
l-354.394-45.882l54.211,288.35l381.396,62.204l139.196-103.732c-1.062,3.491-1.646,6.868-1.646,10.045
c0,28.216,33.431,30.006,63.525,30.006c30.096-0.002,54.489-22.875,54.489-51.088c0-3.146-0.164-6.213-0.479-9.197
c3.776-3.562,5.916-6.071,5.916-6.071L1198.1,678.645z M1058.916,790.071c4.574-37.48,15.095-130.188,18.531-215.626
l55.771,108.627L1058.916,790.071z"/>
</g>
<path fill="#EB6874" d="M1046.778,852.009c0,0-33.005,46.755-116.854,46.755c-80.219,0-111.363-39.827-111.363-39.827
s-22.362-284.349-24.272-398.131c48.664-59.836,226.619-59.836,275.286,0C1030.186,535.59,1046.778,852.009,1046.778,852.009z"/>
<path fill="#EB6874" d="M924.76,414.256c0.692,18.729-37.178,41.051-55.864,29.795c-7.71-13.057-18.999-33.86-34.576-48.891
c3.03-20.482,49.17-45.941,67.864-37.045C903.486,380.762,909.632,387.779,924.76,414.256z"/>
<path fill="#E56373" d="M834.488,394.22l-0.171,0.937c21.713,9.927,67.411-16.884,67.866-37.041
C883.774,349.357,838.751,373.911,834.488,394.22z"/>
<polygon fill="#E8C669" points="914.538,473.938 913.486,474.499 859.899,387.066 871.778,380.731 "/>
<polygon fill="#D1D1D1" points="907.447,1000 526.054,937.796 700.184,810.046 1087.602,866.226 "/>
<g>
<polygon fill="#BDBDBD" points="580.317,923.299 705.71,832.489 1032.723,879.911 902.027,975.77 "/>
</g>
<polygon opacity="0.2" fill="#43A2E3" enable-background="new " points="907.447,1000 546.054,917.796 866.693,834.076
971.688,849.574 "/>
<path fill="#EB6874" d="M932.164,550.878c28.444,2.622,57.444,7.622,82.444-6.378c3-1,1-11,1-17c-28,3-56,2-83.896,2.457
L932.164,550.878z"/>
<circle fill="#FFFFFF" cx="971.688" cy="540.718" r="4.256"/>
<polygon fill="#EB6874" points="931.93,556.5 938.275,621.166 978.942,643.166 1018.942,620.5 1016.263,553.933 "/>
<path fill="#E8C669" d="M895.102,373.051c-1.093-10.796-22.779-47.384-30.262-50.567c-13.917-5.919-40.238,8.119-43.073,22.973
c-1.545,8.099,21.21,45.393,29.607,51.38C867.051,394.6,885.304,384.367,895.102,373.051z"/>
<path fill="#F4DA73" d="M621.968,241.158c-22.896,147.357,233.24,167.546,268.186,120.351
c-8.544-29.009-43.544-94.009-78.605-198.818"/>
<path fill="#040504" d="M654.749,431.138l0.828-3.298c0.152,0.026,15.17,2.667,25.842-8.498c2.789-2.921,5.091-6.579,6.836-10.874
c3.369-8.303,4.862-16.948,6.179-24.579c1.773-10.262,3.303-19.118,8.669-24.731c12.153-12.717,26.799-8.845,32.587,1.815
C746.99,381.795,688.632,438.987,654.749,431.138z"/>
<path fill="#040504" d="M823.866,401.452l-2.239-2.561c-0.119,0.094-12.296,9.27-26.87,4.165c-3.815-1.333-7.525-3.549-11.029-6.585
c-6.773-5.864-12.033-12.892-16.666-19.091c-6.24-8.337-11.627-15.533-18.957-18.097c-16.602-5.812-27.895,4.288-28.208,16.416
C719.283,399.386,796.442,422.449,823.866,401.452z"/>
<path fill="#F4DA73" d="M744.807,351.491c-2.322,14.605-58.032,49.185-74.618,46.547c-16.587-2.638,24.712-38.999,27.035-53.603
L744.807,351.491z"/>
<ellipse transform="matrix(-0.9966 0.0826 -0.0826 -0.9966 1391.5819 619.5657)" fill="#040504" cx="682.969" cy="338.581" rx="9.088" ry="6.447"/>
<ellipse transform="matrix(-0.9966 0.0826 -0.0826 -0.9966 1505.1034 595.0516)" fill="#040504" cx="740.238" cy="328.673" rx="9.088" ry="6.447"/>
<path fill="#F4DA73" d="M861.254,263.038c-6.295,7.855-14.878,11.447-23.357,4.675c-8.478-6.765-11.482-29.235-5.189-37.086
c6.296-7.857,16.114-0.835,24.592,5.936C865.778,243.33,867.547,255.186,861.254,263.038z"/>
<path fill="#040504" d="M544.484,239.217c21.773,74.776,97.485,81.792,179.633,51.824c82.151-29.969,139.627-85.575,117.844-160.351
C805.49,5.435,737.924,18.87,653.801,49.559C573.634,78.804,508.007,113.961,544.484,239.217z"/>
<path fill="#040504" d="M684.237,146.584c1.611,5.362,7.459,5.829,13.841,3.635c6.383-2.195,10.88-6.219,9.27-11.581
c-1.611-5.362-8.597-8.387-14.978-6.192C685.987,134.64,682.626,141.222,684.237,146.584z"/>
<path fill="#E56373" d="M972.183,894.5l51.385,15.322l46.007-449.016c0,0-22.847-6.793-34.807,8.511
C959.04,493.447,972.183,894.5,972.183,894.5z"/>
<path fill="#E56373" d="M884.897,605.923l87.106,300.002l57.698,2.416l-21.176-16.449L924.609,581.5L884.897,605.923z"/>
<path fill="#EB6874" d="M551.41,611.453c19.156-18.541,27.278-24.86,7.833-44.53c21.528,4.189,37.152,21.535,30.423,44.659
c-2.42,7.426-5.372,14.005-11.082,19.955c-2.54,1.596-4.548,4.039-6.774,4.256c-5.298,0.967-13.923-25.467-18.854-24.508
C552.005,611.39,551.41,611.453,551.41,611.453z"/>
<path fill="#E8C669" d="M920.909,606.86c9.936-9.53,8.846-26.124-13.438-47.732c-22.284-21.607-87.118-26.998-97.056-17.469
c-9.937,9.53,29.863,21.716,52.153,43.329C884.852,606.596,910.974,616.388,920.909,606.86z"/>
<polygon fill="#D1D1D1" points="907.447,1000 526.054,937.796 455.573,562.908 883.193,567.088 "/>
<g>
<polygon fill="#FFFFFF" points="606.099,740.38 614.532,795.093 668.56,768.994 "/>
<polygon fill="#FFFFFF" points="748.491,797.98 740.053,743.246 686.029,769.359 "/>
<polygon fill="#FFFFFF" points="676.07,760.441 731.793,730.562 666.442,698.07 610.486,727.945 "/>
<polygon fill="#FFFFFF" points="688.308,839.822 744.031,809.943 678.681,777.451 622.724,807.326 "/>
</g>
<path fill="#E8C669" d="M840.661,552.027c-5.182-11.489-15.091-18.191-28.998-11.823c-13.907,6.368-20.231,50.838-15.05,62.328
c5.182,11.49,14.337-11.802,28.248-18.172C838.768,577.993,845.842,563.515,840.661,552.027z"/>
<path fill="#E8C669" d="M857.661,558.027c-5.182-11.489-15.091-18.191-28.998-11.823c-13.907,6.368-20.231,50.838-15.05,62.328
c5.182,11.49,20.614-35.997,34.525-42.366C856.739,567.637,862.842,569.515,857.661,558.027z"/>
<ellipse fill="#67C4F9" cx="740.609" cy="345.167" rx="3" ry="7.333"/>
<ellipse fill="#67C4F9" cx="740.609" cy="385.167" rx="3" ry="7.333"/>
<ellipse fill="#67C4F9" cx="740.609" cy="455.167" rx="3" ry="7.333"/>
<ellipse fill="#67C4F9" cx="680.609" cy="355.167" rx="3" ry="7.333"/>
<ellipse fill="#67C4F9" cx="680.609" cy="465.167" rx="3" ry="7.333"/>
<ellipse fill="#67C4F9" cx="680.609" cy="545.167" rx="3" ry="7.333"/>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="185"
height="45"
viewBox="0 0 185 45"
id="svg7843"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="sd5-logo-inverted.svg">
<defs
id="defs7845" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.959798"
inkscape:cx="148.57143"
inkscape:cy="76.667698"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="2560"
inkscape:window-height="1492"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
units="px" />
<metadata
id="metadata7848">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1007.3622)">
<rect
y="1007.3622"
x="4.9999999e-06"
height="45.883873"
width="185.31001"
id="rect6409-6-8-8-7-6-4"
style="opacity:1;fill:#1a1a1a;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<g
id="g7809"
transform="matrix(0.70980573,0,0,0.70980573,-269.60224,2203.0642)">
<g
id="flowRoot3757-07-1-0-5-4-5-0-3-1-0-0-5-0"
style="font-style:normal;font-weight:normal;font-size:10px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none"
transform="translate(275.2292,-1717.1004)">
<path
id="path7771"
style="letter-spacing:-2px;fill:#ffffff"
d="m 180.84516,69.158646 q 0,2.736 -1.98,4.392 -1.98,1.62 -5.076,1.62 -2.088,0 -4.356,-0.756 -2.232,-0.756 -3.96,-2.124 l 1.944,-3.132 q 3.348,2.52 6.48,2.52 1.368,0 2.16,-0.612 0.792,-0.648 0.792,-1.62 0,-1.44 -3.816,-2.592 -0.288,-0.108 -0.432,-0.144 -5.976,-1.62 -5.976,-5.4 0,-2.664 2.052,-4.248 2.088,-1.62 5.4,-1.62 3.312,0 6.264,1.944 l -1.512,2.988 q -2.34,-1.548 -5.076,-1.548 -1.44,0 -2.34,0.54 -0.9,0.504 -0.9,1.548 0,0.936 0.936,1.368 0.648,0.324 1.8,0.612 1.188,0.288 2.088,0.576 0.9,0.288 1.728,0.648 0.864,0.36 1.836,1.008 1.944,1.296 1.944,4.032 z"
inkscape:connector-curvature="0" />
<path
id="path7773"
style="letter-spacing:-2px;fill:#ffffff"
d="m 193.67209,55.442646 q 3.852,0 6.588,2.664 2.736,2.664 2.736,7.092 0,4.428 -2.736,7.2 -2.7,2.772 -6.336,2.772 -3.6,0 -6.48,-3.168 l 0,9.864 -4.032,0 0,-26.136 4.032,0 0,3.348 q 2.376,-3.636 6.228,-3.636 z m -6.3,9.9 q 0,2.736 1.656,4.5 1.656,1.728 4.032,1.728 2.376,0 4.14,-1.728 1.764,-1.728 1.764,-4.464 0,-2.772 -1.728,-4.572 -1.728,-1.836 -4.14,-1.836 -2.412,0 -4.068,1.836 -1.656,1.8 -1.656,4.536 z"
inkscape:connector-curvature="0" />
<path
id="path7775"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:36px;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates';letter-spacing:-3px;fill:#ffffff"
d="m 213.41159,75.170646 q -3.636,0 -6.336,-2.736 -2.7,-2.736 -2.7,-7.2 0,-4.464 2.772,-7.128 2.772,-2.664 6.552,-2.664 3.78,0 6.228,3.6 l 0,-3.312 4.032,0 0,19.152 -4.032,0 0,-3.132 q -1.152,1.656 -2.952,2.556 -1.764,0.864 -3.564,0.864 z m -5.004,-9.756 q 0,2.736 1.764,4.464 1.764,1.728 4.14,1.728 2.376,0 4.032,-1.728 1.656,-1.764 1.656,-4.5 0,-2.736 -1.656,-4.572 -1.656,-1.836 -4.068,-1.836 -2.412,0 -4.14,1.836 -1.728,1.836 -1.728,4.608 z"
inkscape:connector-curvature="0" />
<path
id="path7777"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:36px;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates';letter-spacing:-3px;fill:#ffffff"
d="m 235.28309,75.170646 q -3.996,0 -6.876,-2.7 -2.88,-2.736 -2.88,-7.128 0,-4.392 2.988,-7.128 3.024,-2.772 7.344,-2.772 4.32,0 7.308,2.988 l -2.376,2.916 q -2.484,-2.16 -5.004,-2.16 -2.52,0 -4.392,1.692 -1.836,1.656 -1.836,4.32 0,2.628 1.836,4.464 1.836,1.836 4.5,1.836 2.7,0 5.076,-2.448 l 2.376,2.592 q -3.492,3.528 -8.064,3.528 z"
inkscape:connector-curvature="0" />
<path
id="path7779"
style="letter-spacing:-2px;fill:#ffffff"
d="m 253.24128,55.442646 q 3.924,0 6.516,2.196 2.592,2.16 2.628,5.652 l 0.036,0.072 -13.968,5.868 q 1.872,2.304 5.076,2.304 3.24,0 5.328,-2.52 l 2.376,2.628 q -3.42,3.528 -8.064,3.528 -4.068,0 -6.984,-2.7 -2.916,-2.7 -2.916,-7.128 0,-3.06 1.512,-5.364 1.512,-2.34 3.744,-3.42 2.232,-1.116 4.716,-1.116 z m -6.084,9.972 q 0,0.468 0.036,0.684 l 10.62,-4.572 q -1.224,-2.376 -4.356,-2.376 -2.376,0 -4.356,1.656 -1.944,1.656 -1.944,4.608 z"
inkscape:connector-curvature="0" />
<path
id="path7781"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:36px;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates';letter-spacing:-3px;fill:#ffffff"
d="m 272.34909,75.170646 q -3.636,0 -6.336,-2.736 -2.7,-2.736 -2.7,-7.2 0,-4.464 2.772,-7.128 2.772,-2.664 6.588,-2.664 3.852,0 6.192,3.24 l 0,-10.512 4.032,0 0,26.712 -4.032,0 0,-2.88 q -2.232,3.168 -6.516,3.168 z m -5.004,-9.756 q 0,2.736 1.764,4.464 1.764,1.728 4.14,1.728 2.376,0 4.032,-1.728 1.656,-1.764 1.656,-4.5 0,-2.736 -1.656,-4.572 -1.656,-1.836 -4.068,-1.836 -2.412,0 -4.14,1.836 -1.728,1.836 -1.728,4.608 z"
inkscape:connector-curvature="0" />
<path
id="path7783"
style="letter-spacing:-2px;fill:#ffffff"
d="m 294.43659,55.442646 q 3.924,0 6.516,2.196 2.592,2.16 2.628,5.652 l 0.036,0.072 -13.968,5.868 q 1.872,2.304 5.076,2.304 3.24,0 5.328,-2.52 l 2.376,2.628 q -3.42,3.528 -8.064,3.528 -4.068,0 -6.984,-2.7 -2.916,-2.7 -2.916,-7.128 0,-3.06 1.512,-5.364 1.512,-2.34 3.744,-3.42 2.232,-1.116 4.716,-1.116 z m -6.084,9.972 q 0,0.468 0.036,0.684 l 10.62,-4.572 q -1.224,-2.376 -4.356,-2.376 -2.376,0 -4.356,1.656 -1.944,1.656 -1.944,4.608 z"
inkscape:connector-curvature="0" />
<path
id="path7785"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:36px;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates';letter-spacing:-3px;fill:#ffffff"
d="m 314.22841,75.170646 q -3.996,0 -6.876,-2.7 -2.88,-2.736 -2.88,-7.128 0,-4.392 2.988,-7.128 3.024,-2.772 7.344,-2.772 4.32,0 7.308,2.988 l -2.376,2.916 q -2.484,-2.16 -5.004,-2.16 -2.52,0 -4.392,1.692 -1.836,1.656 -1.836,4.32 0,2.628 1.836,4.464 1.836,1.836 4.5,1.836 2.7,0 5.076,-2.448 l 2.376,2.592 q -3.492,3.528 -8.064,3.528 z"
inkscape:connector-curvature="0" />
<path
id="path7787"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:36px;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates';letter-spacing:-3px;fill:#ffffff"
d="m 327.50659,74.882646 -4.032,0 0,-26.712 4.032,0 0,15.696 7.776,-8.136 5.184,0 -7.272,7.596 7.812,11.556 -4.896,0 -5.688,-8.388 -2.916,2.952 0,5.436 z"
inkscape:connector-curvature="0" />
</g>
<path
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 419.30039,-1669.22 c -0.83723,0 -14.08139,7.648 -14.5,8.3731 -0.41861,0.725 -0.41861,16.0191 0,16.7441 0.41861,0.7251 13.66277,8.3731 14.5,8.3731 0.83722,0 14.08334,-7.648 14.50195,-8.3731 0.41861,-0.725 0.41861,-16.0191 0,-16.7441 -0.41861,-0.7251 -13.66473,-8.3731 -14.50195,-8.3731 z m 11.14843,8.2676 a 14.016884,14.016884 0 0 1 1.75391,3.0332 l -9.39648,5.4395 9.42187,5.4238 a 14.016884,14.016884 0 0 1 -1.75977,3.0273 l -11.1621,-6.4258 -11.15235,6.4571 a 14.016884,14.016884 0 0 1 -1.75195,-3.0313 l 9.39844,-5.4433 -9.42188,-5.4239 a 14.016884,14.016884 0 0 1 1.76172,-3.0254 l 11.16016,6.4239 11.14843,-6.4551 z"
id="path4358-4-6-6-5-8-4-8-2-5-6-8-6-3-9-4-7-5-6-2-4-0-9-6-5-2-5-9-5"
inkscape:connector-curvature="0" />
</g>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="185"
height="45"
viewBox="0 0 185 45"
id="svg7843"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="sd5-logo.svg">
<defs
id="defs7845" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.959798"
inkscape:cx="65.459885"
inkscape:cy="43.855277"
inkscape:document-units="px"
inkscape:current-layer="g7809"
showgrid="false"
inkscape:window-width="2560"
inkscape:window-height="1492"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
units="px" />
<metadata
id="metadata7848">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1007.3622)">
<g
id="g7809"
transform="matrix(0.70980573,0,0,0.70980573,-269.60224,2203.0642)"
style="fill:#000000">
<g
id="flowRoot3757-07-1-0-5-4-5-0-3-1-0-0-5-0"
style="font-style:normal;font-weight:normal;font-size:10px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none"
transform="translate(275.2292,-1717.1004)">
<path
id="path7771"
style="letter-spacing:-2px;fill:#000000"
d="m 180.84516,69.158646 q 0,2.736 -1.98,4.392 -1.98,1.62 -5.076,1.62 -2.088,0 -4.356,-0.756 -2.232,-0.756 -3.96,-2.124 l 1.944,-3.132 q 3.348,2.52 6.48,2.52 1.368,0 2.16,-0.612 0.792,-0.648 0.792,-1.62 0,-1.44 -3.816,-2.592 -0.288,-0.108 -0.432,-0.144 -5.976,-1.62 -5.976,-5.4 0,-2.664 2.052,-4.248 2.088,-1.62 5.4,-1.62 3.312,0 6.264,1.944 l -1.512,2.988 q -2.34,-1.548 -5.076,-1.548 -1.44,0 -2.34,0.54 -0.9,0.504 -0.9,1.548 0,0.936 0.936,1.368 0.648,0.324 1.8,0.612 1.188,0.288 2.088,0.576 0.9,0.288 1.728,0.648 0.864,0.36 1.836,1.008 1.944,1.296 1.944,4.032 z"
inkscape:connector-curvature="0" />
<path
id="path7773"
style="letter-spacing:-2px;fill:#000000"
d="m 193.67209,55.442646 q 3.852,0 6.588,2.664 2.736,2.664 2.736,7.092 0,4.428 -2.736,7.2 -2.7,2.772 -6.336,2.772 -3.6,0 -6.48,-3.168 l 0,9.864 -4.032,0 0,-26.136 4.032,0 0,3.348 q 2.376,-3.636 6.228,-3.636 z m -6.3,9.9 q 0,2.736 1.656,4.5 1.656,1.728 4.032,1.728 2.376,0 4.14,-1.728 1.764,-1.728 1.764,-4.464 0,-2.772 -1.728,-4.572 -1.728,-1.836 -4.14,-1.836 -2.412,0 -4.068,1.836 -1.656,1.8 -1.656,4.536 z"
inkscape:connector-curvature="0" />
<path
id="path7775"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:36px;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates';letter-spacing:-3px;fill:#000000"
d="m 213.41159,75.170646 q -3.636,0 -6.336,-2.736 -2.7,-2.736 -2.7,-7.2 0,-4.464 2.772,-7.128 2.772,-2.664 6.552,-2.664 3.78,0 6.228,3.6 l 0,-3.312 4.032,0 0,19.152 -4.032,0 0,-3.132 q -1.152,1.656 -2.952,2.556 -1.764,0.864 -3.564,0.864 z m -5.004,-9.756 q 0,2.736 1.764,4.464 1.764,1.728 4.14,1.728 2.376,0 4.032,-1.728 1.656,-1.764 1.656,-4.5 0,-2.736 -1.656,-4.572 -1.656,-1.836 -4.068,-1.836 -2.412,0 -4.14,1.836 -1.728,1.836 -1.728,4.608 z"
inkscape:connector-curvature="0" />
<path
id="path7777"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:36px;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates';letter-spacing:-3px;fill:#000000"
d="m 235.28309,75.170646 q -3.996,0 -6.876,-2.7 -2.88,-2.736 -2.88,-7.128 0,-4.392 2.988,-7.128 3.024,-2.772 7.344,-2.772 4.32,0 7.308,2.988 l -2.376,2.916 q -2.484,-2.16 -5.004,-2.16 -2.52,0 -4.392,1.692 -1.836,1.656 -1.836,4.32 0,2.628 1.836,4.464 1.836,1.836 4.5,1.836 2.7,0 5.076,-2.448 l 2.376,2.592 q -3.492,3.528 -8.064,3.528 z"
inkscape:connector-curvature="0" />
<path
id="path7779"
style="letter-spacing:-2px;fill:#000000"
d="m 253.24128,55.442646 q 3.924,0 6.516,2.196 2.592,2.16 2.628,5.652 l 0.036,0.072 -13.968,5.868 q 1.872,2.304 5.076,2.304 3.24,0 5.328,-2.52 l 2.376,2.628 q -3.42,3.528 -8.064,3.528 -4.068,0 -6.984,-2.7 -2.916,-2.7 -2.916,-7.128 0,-3.06 1.512,-5.364 1.512,-2.34 3.744,-3.42 2.232,-1.116 4.716,-1.116 z m -6.084,9.972 q 0,0.468 0.036,0.684 l 10.62,-4.572 q -1.224,-2.376 -4.356,-2.376 -2.376,0 -4.356,1.656 -1.944,1.656 -1.944,4.608 z"
inkscape:connector-curvature="0" />
<path
id="path7781"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:36px;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates';letter-spacing:-3px;fill:#000000"
d="m 272.34909,75.170646 q -3.636,0 -6.336,-2.736 -2.7,-2.736 -2.7,-7.2 0,-4.464 2.772,-7.128 2.772,-2.664 6.588,-2.664 3.852,0 6.192,3.24 l 0,-10.512 4.032,0 0,26.712 -4.032,0 0,-2.88 q -2.232,3.168 -6.516,3.168 z m -5.004,-9.756 q 0,2.736 1.764,4.464 1.764,1.728 4.14,1.728 2.376,0 4.032,-1.728 1.656,-1.764 1.656,-4.5 0,-2.736 -1.656,-4.572 -1.656,-1.836 -4.068,-1.836 -2.412,0 -4.14,1.836 -1.728,1.836 -1.728,4.608 z"
inkscape:connector-curvature="0" />
<path
id="path7783"
style="letter-spacing:-2px;fill:#000000"
d="m 294.43659,55.442646 q 3.924,0 6.516,2.196 2.592,2.16 2.628,5.652 l 0.036,0.072 -13.968,5.868 q 1.872,2.304 5.076,2.304 3.24,0 5.328,-2.52 l 2.376,2.628 q -3.42,3.528 -8.064,3.528 -4.068,0 -6.984,-2.7 -2.916,-2.7 -2.916,-7.128 0,-3.06 1.512,-5.364 1.512,-2.34 3.744,-3.42 2.232,-1.116 4.716,-1.116 z m -6.084,9.972 q 0,0.468 0.036,0.684 l 10.62,-4.572 q -1.224,-2.376 -4.356,-2.376 -2.376,0 -4.356,1.656 -1.944,1.656 -1.944,4.608 z"
inkscape:connector-curvature="0" />
<path
id="path7785"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:36px;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates';letter-spacing:-3px;fill:#000000"
d="m 314.22841,75.170646 q -3.996,0 -6.876,-2.7 -2.88,-2.736 -2.88,-7.128 0,-4.392 2.988,-7.128 3.024,-2.772 7.344,-2.772 4.32,0 7.308,2.988 l -2.376,2.916 q -2.484,-2.16 -5.004,-2.16 -2.52,0 -4.392,1.692 -1.836,1.656 -1.836,4.32 0,2.628 1.836,4.464 1.836,1.836 4.5,1.836 2.7,0 5.076,-2.448 l 2.376,2.592 q -3.492,3.528 -8.064,3.528 z"
inkscape:connector-curvature="0" />
<path
id="path7787"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:36px;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates';letter-spacing:-3px;fill:#000000"
d="m 327.50659,74.882646 -4.032,0 0,-26.712 4.032,0 0,15.696 7.776,-8.136 5.184,0 -7.272,7.596 7.812,11.556 -4.896,0 -5.688,-8.388 -2.916,2.952 0,5.436 z"
inkscape:connector-curvature="0" />
</g>
<path
style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 417.74911,-1670.7774 -14.58027,8.4162 14.57783,8.3919 14.5364,-8.4187 -14.53396,-8.3894 z m 15.60884,10.2028 -13.50296,7.819 13.50296,7.7727 0,-15.5917 z m -31.21768,0.049 0,15.5917 13.50296,-7.819 -13.50296,-7.7727 z m 15.61128,8.9864 -14.5364,8.4187 14.53396,8.3894 14.58027,-8.4162 -14.57783,-8.3919 z"
id="path4358-4-6-6-5-8-4-8-2-5-6-8"
inkscape:connector-curvature="0" />
</g>
</g>
</svg>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 17.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="118.807px" height="26.558px" viewBox="13 11.299 118.807 26.558" enable-background="new 13 11.299 118.807 26.558"
xml:space="preserve">
<path fill="#FFFFFF" d="M52.333,22.961c-2.275-0.54-2.814-0.942-2.814-1.853v-0.035c0-0.774,0.708-1.397,1.921-1.397
c1.08,0,2.143,0.422,3.203,1.214l1.113-1.566c-1.197-0.963-2.562-1.483-4.281-1.483c-2.342,0-4.027,1.398-4.027,3.42v0.033
c0,2.175,1.416,2.917,3.927,3.522c2.189,0.508,2.663,0.963,2.663,1.807v0.03c0,0.879-0.811,1.483-2.091,1.483
c-1.448,0-2.596-0.556-3.724-1.536l-1.246,1.488c1.416,1.26,3.118,1.884,4.921,1.884c2.476,0,4.214-1.312,4.214-3.522v-0.032
C56.111,24.462,54.827,23.567,52.333,22.961z"/>
<path fill="#FFFFFF" d="M62.313,20.72c-1.449,0-2.376,0.74-3.033,1.669v-1.482h-2.039V32.5h2.039v-4.078
c0.623,0.825,1.549,1.568,3.033,1.568c2.106,0,4.129-1.67,4.129-4.618v-0.036C66.443,22.372,64.403,20.72,62.313,20.72z
M64.37,25.371c0,1.753-1.146,2.848-2.545,2.848c-1.383,0-2.597-1.144-2.597-2.848v-0.036c0-1.699,1.214-2.846,2.597-2.846
c1.384,0,2.545,1.129,2.545,2.846V25.371z"/>
<path fill="#FFFFFF" d="M71.325,20.788c-1.417,0-2.378,0.284-3.355,0.724l0.541,1.603c0.81-0.337,1.549-0.557,2.543-0.557
c1.434,0,2.209,0.675,2.209,1.939v0.216c-0.689-0.216-1.399-0.37-2.395-0.37c-2.171,0-3.672,0.944-3.672,2.866v0.034
c0,1.787,1.484,2.748,3.15,2.748c1.366,0,2.292-0.574,2.9-1.301v1.115h1.99v-5.274c0-1.164-0.305-2.109-0.961-2.748
C73.65,21.141,72.655,20.788,71.325,20.788z M73.297,26.6c0,1.131-1.027,1.906-2.377,1.906c-0.978,0-1.736-0.489-1.736-1.35v-0.032
c0-0.927,0.777-1.484,2.09-1.484c0.81,0,1.501,0.152,2.022,0.355L73.297,26.6L73.297,26.6z"/>
<path fill="#FFFFFF" d="M81.052,28.219c-1.569,0-2.663-1.262-2.663-2.848v-0.034c0-1.55,1.094-2.83,2.578-2.83
c1.014,0,1.668,0.454,2.293,1.111l1.279-1.364c-0.842-0.91-1.887-1.534-3.557-1.534c-2.681,0-4.635,2.122-4.635,4.651v0.031
c0,2.529,1.957,4.604,4.604,4.604c1.734,0,2.762-0.691,3.639-1.668l-1.23-1.215C82.721,27.783,82.014,28.219,81.052,28.219z"/>
<path fill="#FFFFFF" d="M89.303,20.72c-2.546,0-4.349,2.09-4.349,4.636v0.032c0,2.748,1.987,4.619,4.567,4.619
c1.636,0,2.797-0.66,3.643-1.668l-1.197-1.062c-0.711,0.692-1.418,1.062-2.414,1.062c-1.312,0-2.342-0.809-2.562-2.257h6.541
c0.016-0.206,0.031-0.391,0.031-0.576C93.566,22.945,92.134,20.72,89.303,20.72z M86.977,24.731
c0.187-1.384,1.062-2.344,2.309-2.344c1.348,0,2.123,1.027,2.258,2.344H86.977z"/>
<path fill="#FFFFFF" d="M101.723,22.287c-0.643-0.844-1.568-1.567-3.035-1.567c-2.123,0-4.129,1.667-4.129,4.615v0.036
c0,2.949,2.039,4.619,4.129,4.619c1.448,0,2.375-0.742,3.035-1.669v1.482h2.037V17.5h-2.037V22.287z M101.754,25.371
c0,1.704-1.211,2.848-2.576,2.848c-1.386,0-2.562-1.13-2.562-2.848v-0.036c0-1.768,1.163-2.846,2.562-2.846
c1.365,0,2.576,1.129,2.576,2.846V25.371z"/>
<path fill="#FFFFFF" d="M109.105,20.72c-2.543,0-4.347,2.09-4.347,4.636v0.032c0,2.748,1.987,4.619,4.568,4.619
c1.634,0,2.799-0.66,3.64-1.668l-1.195-1.062c-0.709,0.692-1.416,1.062-2.414,1.062c-1.312,0-2.342-0.809-2.56-2.257h6.539
c0.015-0.206,0.032-0.391,0.032-0.576C113.371,22.945,111.939,20.72,109.105,20.72z M106.781,24.731
c0.187-1.384,1.062-2.344,2.309-2.344c1.35,0,2.121,1.027,2.26,2.344H106.781z"/>
<path fill="#FFFFFF" d="M119.034,28.219c-1.57,0-2.665-1.262-2.665-2.848v-0.034c0-1.55,1.095-2.83,2.579-2.83
c1.011,0,1.669,0.454,2.292,1.111l1.281-1.364c-0.842-0.91-1.889-1.534-3.556-1.534c-2.681,0-4.635,2.122-4.635,4.651v0.031
c0,2.529,1.955,4.604,4.603,4.604c1.733,0,2.762-0.691,3.639-1.668l-1.231-1.215C120.702,27.783,119.991,28.219,119.034,28.219z"/>
<polygon fill="#FFFFFF" points="128.27,24.529 131.807,20.905 129.33,20.905 125.637,24.849 125.637,17.5 123.6,17.5 123.6,29.803
125.637,29.803 125.637,27.258 126.902,25.945 129.532,29.805 131.926,29.805 "/>
<g>
<polygon fill="#FFFFFF" points="36,19.009 26.355,24.578 36,30.147 "/>
<polygon fill="#FFFFFF" points="24.5,23.507 35.073,17.403 24.5,11.299 13.927,17.403 "/>
<polygon fill="#FFFFFF" points="13,17.939 13,17.939 13,17.939 "/>
<polygon fill="#FFFFFF" points="36,17.939 36,17.939 36,17.938 "/>
<polygon fill="#FFFFFF" points="36,31.218 36,31.218 36,31.218 "/>
<polygon fill="#FFFFFF" points="24.5,25.649 13.927,31.753 24.5,37.857 35.073,31.753 "/>
<polygon fill="#FFFFFF" points="22.645,24.578 13,19.009 13,30.147 "/>
</g>
</svg>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 17.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="780px" height="60px" viewBox="0 0 780 60" enable-background="new 0 0 780 60" xml:space="preserve">
<polygon fill="#303030" points="780,0 779.932,60 0,59.458 "/>
</svg>
var api_endpoint = ENV.apiEndpoint;
var api_socket_endpoint = ENV.websocketsEndpoint;
var api_token = null;
var websocket = null;
var channel_id = null;
var space_auth = null;
function load_resource(method, path, data, on_success, on_error, on_progress) {
var req = new XMLHttpRequest();
req.onload = function(evt,b,c) {
if (req.status>=200 && req.status<=299) {
var parsed = null;
try {
var parsed = JSON.parse(req.response);
} catch(e) {};
if (data && parsed && parsed._id) {
// mutate the local object and update its _id
data._id = parsed._id;
}
if (on_success) {
on_success(parsed,req);
}
} else {
if (on_error) {
on_error(req);
}
}
};
req.onerror = function(err) {
console.log(err,err.target);
// window._spacedeck_location_change is a flag set by redirect / reload functions
if (!window._spacedeck_location_change) {
if (window.spacedeck && window.spacedeck.active_space) {
window.spacedeck.offline = true;
} else {
alert("Could not connect to Spacedeck. Please reconnect and try again.");
}
}
if (on_error) on_error(req);
}
req.withCredentials = true;
req.open(method, api_endpoint+"/api"+path, true);
if (api_token) {
req.setRequestHeader("X-Spacedeck-Auth", api_token);
}
if (space_auth) {
console.log("set space auth", space_auth);
req.setRequestHeader("X-Spacedeck-Space-Auth", space_auth);
}
if (channel_id) {
req.setRequestHeader("X-Spacedeck-Channel", channel_id);
}
if (csrf_token) {
req.setRequestHeader("X-csrf-token", csrf_token);
}
try {
if (data) {
if (data.toString() == "[object File]") {
req.setRequestHeader("Content-type", data.type);
req.setRequestHeader("Accepts", "application/json");
req.upload.onprogress = function(e) {
console.log("upload progress: ",e.loaded,e.total);
if (on_progress) on_progress(e);
}
req.send(data);
} else {
req.setRequestHeader("Content-type", "application/json");
req.send(JSON.stringify(data));
}
} else {
req.send();
}
} catch (e) {
if (on_error) {
on_error(req, e);
} else {
throw(e);
}
}
}
function get_resource(path, on_success, on_error, on_progress) {
load_resource("get", path, null, on_success, on_error, on_progress);
}
function load_profile(name, on_success, on_error) {
load_resource("get", "/users/slug?slug="+name, null, on_success, on_error);
}
function load_current_user(on_success, on_error) {
load_resource("get", "/users/current", null, on_success, on_error);
}
function load_space(id, on_success, on_error) {
if (!id || id=="undefined") {
console.error("load_space id:", id);
return;
}
var url = "/spaces/"+id;
load_resource("get", url, null, function(space, req) {
var role = req.getResponseHeader("x-spacedeck-space-role");
on_success(space, role);
}, on_error);
}
function load_space_path(id, on_success, on_error) {
var url = "/spaces/"+id+"/path";
load_resource("get", url, null, function(space, req) {
on_success(space);
}, on_error);
}
function load_spaces(id, is_home, on_success, on_error) {
if (!id || id=="undefined") {
console.error("load_spaces id:", id);
return;
}
var q = "?parent_space_id="+id;
load_resource("get", "/spaces"+q, null, function(spaces) {
on_success(spaces);
}, on_error);
}
function load_writable_folders( on_success, on_error) {
load_resource("get", "/spaces?writablefolders=true", null, on_success, on_error);
}
function load_history(s, on_success, on_error) {
load_resource("get", "/spaces/"+ s._id +"/digest", null, on_success, on_error);
}
function load_filtered_spaces(filter, on_success, on_error) {
load_resource("get", "/spaces?filter="+filter, null, on_success, on_error);
}
function load_spaces_search(query, on_success, on_error) {
load_resource("get", "/spaces?search="+query, null, on_success, on_error);
}
function load_artifacts(id, on_success, on_error) {
load_resource("get", "/spaces/"+id+"/artifacts", null, on_success, on_error);
}
function save_artifact(a, on_success, on_error) {
if (a._id) {
load_resource("put", "/spaces/"+a.space_id+"/artifacts/"+a._id,a,on_success,on_error);
} else {
load_resource("post", "/spaces/"+a.space_id+"/artifacts",a,on_success,on_error);
}
}
function save_pdf_file(space, point, file, zones, on_success, on_error, on_progress) {
load_resource("post", "/spaces/"+space._id+"/artifacts-pdf?filename="+file.name + "&x="+point.x+"&y="+point.y + "&zones="+zones,file,on_success,on_error,on_progress);
}
function save_artifact_file(a, file,filename, on_success, on_error, on_progress) {
load_resource("post", "/spaces/"+a.space_id+"/artifacts/"+a._id+"/payload?filename="+filename,file,on_success,on_error,on_progress);
}
function save_space(s, on_success, on_error) {
if (s._id) {
delete s['artifacts'];
load_resource("put", "/spaces/"+s._id,s,on_success,on_error);
} else {
load_resource("post", "/spaces",s,on_success,on_error);
}
}
function delete_space(s, on_success, on_error) {
load_resource("delete", "/spaces/"+s._id, null, on_success, on_error);
}
function delete_artifact(a, on_success, on_error) {
load_resource("delete", "/spaces/"+a.space_id+"/artifacts/"+a._id);
}
function duplicate_space(s, to_space_id, on_success, on_error) {
var path = "/spaces/"+s._id+"/duplicate";
if(to_space_id) {
path += "?parent_space_id=" + to_space_id
}
load_resource("post", path, null,on_success,on_error);
}
function load_members(space, on_success, on_error) {
load_resource("get", "/spaces/"+ space._id +"/memberships", null, on_success, on_error);
}
function create_membership(space, m, on_success, on_error) {
load_resource("post", "/spaces/"+ space._id +"/memberships", m, on_success, on_error);
}
function save_membership(space, m, on_success, on_error) {
load_resource("put", "/spaces/"+ space._id +"/memberships/" + m._id, m, on_success, on_error);
}
function delete_membership(space, m, on_success, on_error) {
load_resource("delete", "/spaces/"+ space._id +"/memberships/"+m._id, m, on_success, on_error);
}
function accept_invitation(id, code, on_success, on_error) {
load_resource("get", "/memberships/"+ id +"/accept?code="+code, null, on_success, on_error);
}
function get_join_link(space_id, on_success, on_error) {
load_resource("get", "/invitation_codes?space_id="+space_id, null, on_success, on_error);
}
function create_join_link(space_id, role, on_success, on_error) {
load_resource("post", "/invitation_codes", {join_role:role, sticky:true, space_id:space_id}, on_success, on_error);
}
function delete_join_link(link_id, on_success, on_error) {
load_resource("delete", "/invitation_codes/"+link_id, null, on_success, on_error);
}
function load_team_members(id, on_success, on_error) {
load_resource("get", "/teams/"+ id +"/memberships", null, function(team) {
on_success(team);
}, on_error);
}
function save_avatar_file(type, o, file, on_success, on_error) {
load_resource("post", "/"+type+"s/"+o._id+"/avatar", file, on_success,on_error);
}
function remove_avatar_file(type, o, on_success, on_error) {
load_resource("delete", "/"+type+"s/"+o._id+"/avatar", null, on_success,on_error);
}
function save_space_background_file(space, file, on_success, on_error) {
load_resource("post", "/spaces/"+space._id+"/background?filename="+file.name, file, on_success,on_error);
}
function save_user_background_file(user, file, on_success, on_error) {
load_resource("post", "/users/"+user._id+"/background", file, on_success,on_error);
}
function save_user_password(u, pass, newPass, on_success, on_error) {
load_resource("post", "/users/" + u._id + "/password", {old_password:pass, new_password:newPass}, on_success, on_error);
}
function get_featured_users(on_success, on_error) {
load_resource("get", "/users/featured", null, on_success, on_error);
}
function save_user(u, on_success, on_error) {
load_resource("put", "/users/"+u._id,u,on_success,on_error);
}
function delete_user(u, password, on_success, on_error) {
load_resource("delete", "/users/"+u._id +"?password="+password,null,on_success,on_error);
}
function create_user(name, email, password, password_confirmation, on_success, on_error) {
load_resource("post", "/users", {email:email, nickname:name, password:password, password_confirmation: password_confirmation}, on_success, on_error);
}
function create_session(email, password, on_success, on_error) {
load_resource("post", "/sessions", {email:email, password:password}, on_success, on_error);
}
function delete_session(on_success, on_error) {
load_resource("delete", "/sessions/current", null, on_success, on_error);
}
function create_oauthtoken(on_success, on_error) {
load_resource("get", "/users/oauth2callback/url", null, on_success, on_error);
}
function create_session_for_oauthtoken(token, on_success, on_error) {
load_resource("get", "/users/loginorsignupviagoogle?code="+token, null, on_success, on_error);
}
function create_password_reset(email, on_success, on_error) {
load_resource("post", "/users/password_reset_requests?email=" + encodeURIComponent(email), null, on_success, on_error);
}
function confirm_password_reset(password, confirm, on_success, on_error) {
load_resource("post", "/users/password_reset_requests/"+confirm+"/confirm", {password:password}, on_success, on_error);
}
function confirm_user(user, token, on_success, on_error) {
load_resource("put", "/users/"+user._id+"/confirm", {token:token}, on_success, on_error);
}
function resent_confirm_mail(user, on_success, on_error) {
load_resource("post", "/users/"+user._id+"/confirm", {}, on_success, on_error);
}
function create_feedback(user, m, on_success, on_error) {
load_resource("post", "/users/feedback", {text: m}, on_success, on_error);
}
function save_team(u, on_success, on_error) {
load_resource("put", "/teams/"+u._id,u,on_success,on_error);
}
function load_comments(space_id, on_success, on_error) {
load_resource("get", "/spaces/"+space_id+"/messages", null, on_success, on_error);
}
function save_comment(space_id, data, on_success, on_error) {
load_resource("post", "/spaces/"+space_id +"/messages", data, on_success, on_error);
}
function delete_comment(space_id, message_id,on_success, on_error) {
load_resource("delete", "/spaces/"+space_id +"/messages/"+ message_id, null , on_success, on_error);
}
function update_comment(space_id, data, on_success, on_error) {
load_resource("post", "/spaces/"+space_id+"/messages/" + data._id , data, on_success, on_error);
}
function load_notifications(u, on_success, on_error) {
load_resource("get", "/notifications", null, on_success, on_error);
}
/*!
* clipboard.js v1.5.5
* https://zenorocha.github.io/clipboard.js
*
* Licensed MIT © Zeno Rocha
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Clipboard = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var matches = require('matches-selector')
module.exports = function (element, selector, checkYoSelf) {
var parent = checkYoSelf ? element : element.parentNode
while (parent && parent !== document) {
if (matches(parent, selector)) return parent;
parent = parent.parentNode
}
}
},{"matches-selector":2}],2:[function(require,module,exports){
/**
* Element prototype.
*/
var proto = Element.prototype;
/**
* Vendor function.
*/
var vendor = proto.matchesSelector
|| proto.webkitMatchesSelector
|| proto.mozMatchesSelector
|| proto.msMatchesSelector
|| proto.oMatchesSelector;
/**
* Expose `match()`.
*/
module.exports = match;
/**
* Match `el` to `selector`.
*
* @param {Element} el
* @param {String} selector
* @return {Boolean}
* @api public
*/
function match(el, selector) {
if (vendor) return vendor.call(el, selector);
var nodes = el.parentNode.querySelectorAll(selector);
for (var i = 0; i < nodes.length; ++i) {
if (nodes[i] == el) return true;
}
return false;
}
},{}],3:[function(require,module,exports){
var closest = require('closest');
/**
* Delegates event to a selector.
*
* @param {Element} element
* @param {String} selector
* @param {String} type
* @param {Function} callback
* @return {Object}
*/
function delegate(element, selector, type, callback) {
var listenerFn = listener.apply(this, arguments);
element.addEventListener(type, listenerFn);
return {
destroy: function() {
element.removeEventListener(type, listenerFn);
}
}
}
/**
* Finds closest match and invokes callback.
*
* @param {Element} element
* @param {String} selector
* @param {String} type
* @param {Function} callback
* @return {Function}
*/
function listener(element, selector, type, callback) {
return function(e) {
e.delegateTarget = closest(e.target, selector, true);
if (e.delegateTarget) {
callback.call(element, e);
}
}
}
module.exports = delegate;
},{"closest":1}],4:[function(require,module,exports){
/**
* Check if argument is a HTML element.
*
* @param {Object} value
* @return {Boolean}
*/
exports.node = function(value) {
return value !== undefined
&& value instanceof HTMLElement
&& value.nodeType === 1;
};
/**
* Check if argument is a list of HTML elements.
*
* @param {Object} value
* @return {Boolean}
*/
exports.nodeList = function(value) {
var type = Object.prototype.toString.call(value);
return value !== undefined
&& (type === '[object NodeList]' || type === '[object HTMLCollection]')
&& ('length' in value)
&& (value.length === 0 || exports.node(value[0]));
};
/**
* Check if argument is a string.
*
* @param {Object} value
* @return {Boolean}
*/
exports.string = function(value) {
return typeof value === 'string'
|| value instanceof String;
};
/**
* Check if argument is a function.
*
* @param {Object} value
* @return {Boolean}
*/
exports.function = function(value) {
var type = Object.prototype.toString.call(value);
return type === '[object Function]';
};
},{}],5:[function(require,module,exports){
var is = require('./is');
var delegate = require('delegate');
/**
* Validates all params and calls the right
* listener function based on its target type.
*
* @param {String|HTMLElement|HTMLCollection|NodeList} target
* @param {String} type
* @param {Function} callback
* @return {Object}
*/
function listen(target, type, callback) {
if (!target && !type && !callback) {
throw new Error('Missing required arguments');
}
if (!is.string(type)) {
throw new TypeError('Second argument must be a String');
}
if (!is.function(callback)) {
throw new TypeError('Third argument must be a Function');
}
if (is.node(target)) {
return listenNode(target, type, callback);
}
else if (is.nodeList(target)) {
return listenNodeList(target, type, callback);
}
else if (is.string(target)) {
return listenSelector(target, type, callback);
}
else {
throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList');
}
}
/**
* Adds an event listener to a HTML element
* and returns a remove listener function.
*
* @param {HTMLElement} node
* @param {String} type
* @param {Function} callback
* @return {Object}
*/
function listenNode(node, type, callback) {
node.addEventListener(type, callback);
return {
destroy: function() {
node.removeEventListener(type, callback);
}
}
}
/**
* Add an event listener to a list of HTML elements
* and returns a remove listener function.
*
* @param {NodeList|HTMLCollection} nodeList
* @param {String} type
* @param {Function} callback
* @return {Object}
*/
function listenNodeList(nodeList, type, callback) {
Array.prototype.forEach.call(nodeList, function(node) {
node.addEventListener(type, callback);
});
return {
destroy: function() {
Array.prototype.forEach.call(nodeList, function(node) {
node.removeEventListener(type, callback);
});
}
}
}
/**
* Add an event listener to a selector
* and returns a remove listener function.
*
* @param {String} selector
* @param {String} type
* @param {Function} callback
* @return {Object}
*/
function listenSelector(selector, type, callback) {
return delegate(document.body, selector, type, callback);
}
module.exports = listen;
},{"./is":4,"delegate":3}],6:[function(require,module,exports){
function select(element) {
var selectedText;
if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {
element.focus();
element.setSelectionRange(0, element.value.length);
selectedText = element.value;
}
else {
if (element.hasAttribute('contenteditable')) {
element.focus();
}
var selection = window.getSelection();
var range = document.createRange();
range.selectNodeContents(element);
selection.removeAllRanges();
selection.addRange(range);
selectedText = selection.toString();
}
return selectedText;
}
module.exports = select;
},{}],7:[function(require,module,exports){
function E () {
// Keep this empty so it's easier to inherit from
// (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)
}
E.prototype = {
on: function (name, callback, ctx) {
var e = this.e || (this.e = {});
(e[name] || (e[name] = [])).push({
fn: callback,
ctx: ctx
});
return this;
},
once: function (name, callback, ctx) {
var self = this;
function listener () {
self.off(name, listener);
callback.apply(ctx, arguments);
};
listener._ = callback
return this.on(name, listener, ctx);
},
emit: function (name) {
var data = [].slice.call(arguments, 1);
var evtArr = ((this.e || (this.e = {}))[name] || []).slice();
var i = 0;
var len = evtArr.length;
for (i; i < len; i++) {
evtArr[i].fn.apply(evtArr[i].ctx, data);
}
return this;
},
off: function (name, callback) {
var e = this.e || (this.e = {});
var evts = e[name];
var liveEvents = [];
if (evts && callback) {
for (var i = 0, len = evts.length; i < len; i++) {
if (evts[i].fn !== callback && evts[i].fn._ !== callback)
liveEvents.push(evts[i]);
}
}
// Remove event from queue to prevent memory leak
// Suggested by https://github.com/lazd
// Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910
(liveEvents.length)
? e[name] = liveEvents
: delete e[name];
return this;
}
};
module.exports = E;
},{}],8:[function(require,module,exports){
'use strict';
exports.__esModule = true;
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
var _select = require('select');
var _select2 = _interopRequireDefault(_select);
/**
* Inner class which performs selection from either `text` or `target`
* properties and then executes copy or cut operations.
*/
var ClipboardAction = (function () {
/**
* @param {Object} options
*/
function ClipboardAction(options) {
_classCallCheck(this, ClipboardAction);
this.resolveOptions(options);
this.initSelection();
}
/**
* Defines base properties passed from constructor.
* @param {Object} options
*/
ClipboardAction.prototype.resolveOptions = function resolveOptions() {
var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
this.action = options.action;
this.emitter = options.emitter;
this.target = options.target;
this.text = options.text;
this.trigger = options.trigger;
this.selectedText = '';
};
/**
* Decides which selection strategy is going to be applied based
* on the existence of `text` and `target` properties.
*/
ClipboardAction.prototype.initSelection = function initSelection() {
if (this.text && this.target) {
throw new Error('Multiple attributes declared, use either "target" or "text"');
} else if (this.text) {
this.selectFake();
} else if (this.target) {
this.selectTarget();
} else {
throw new Error('Missing required attributes, use either "target" or "text"');
}
};
/**
* Creates a fake textarea element, sets its value from `text` property,
* and makes a selection on it.
*/
ClipboardAction.prototype.selectFake = function selectFake() {
var _this = this;
this.removeFake();
this.fakeHandler = document.body.addEventListener('click', function () {
return _this.removeFake();
});
this.fakeElem = document.createElement('textarea');
this.fakeElem.style.position = 'absolute';
this.fakeElem.style.left = '-9999px';
this.fakeElem.style.top = (window.pageYOffset || document.documentElement.scrollTop) + 'px';
this.fakeElem.setAttribute('readonly', '');
this.fakeElem.value = this.text;
document.body.appendChild(this.fakeElem);
this.selectedText = _select2['default'](this.fakeElem);
this.copyText();
};
/**
* Only removes the fake element after another click event, that way
* a user can hit `Ctrl+C` to copy because selection still exists.
*/
ClipboardAction.prototype.removeFake = function removeFake() {
if (this.fakeHandler) {
document.body.removeEventListener('click');
this.fakeHandler = null;
}
if (this.fakeElem) {
document.body.removeChild(this.fakeElem);
this.fakeElem = null;
}
};
/**
* Selects the content from element passed on `target` property.
*/
ClipboardAction.prototype.selectTarget = function selectTarget() {
this.selectedText = _select2['default'](this.target);
this.copyText();
};
/**
* Executes the copy operation based on the current selection.
*/
ClipboardAction.prototype.copyText = function copyText() {
var succeeded = undefined;
try {
succeeded = document.execCommand(this.action);
} catch (err) {
succeeded = false;
}
this.handleResult(succeeded);
};
/**
* Fires an event based on the copy operation result.
* @param {Boolean} succeeded
*/
ClipboardAction.prototype.handleResult = function handleResult(succeeded) {
if (succeeded) {
this.emitter.emit('success', {
action: this.action,
text: this.selectedText,
trigger: this.trigger,
clearSelection: this.clearSelection.bind(this)
});
} else {
this.emitter.emit('error', {
action: this.action,
trigger: this.trigger,
clearSelection: this.clearSelection.bind(this)
});
}
};
/**
* Removes current selection and focus from `target` element.
*/
ClipboardAction.prototype.clearSelection = function clearSelection() {
if (this.target) {
this.target.blur();
}
window.getSelection().removeAllRanges();
};
/**
* Sets the `action` to be performed which can be either 'copy' or 'cut'.
* @param {String} action
*/
/**
* Destroy lifecycle.
*/
ClipboardAction.prototype.destroy = function destroy() {
this.removeFake();
};
_createClass(ClipboardAction, [{
key: 'action',
set: function set() {
var action = arguments.length <= 0 || arguments[0] === undefined ? 'copy' : arguments[0];
this._action = action;
if (this._action !== 'copy' && this._action !== 'cut') {
throw new Error('Invalid "action" value, use either "copy" or "cut"');
}
},
/**
* Gets the `action` property.
* @return {String}
*/
get: function get() {
return this._action;
}
/**
* Sets the `target` property using an element
* that will be have its content copied.
* @param {Element} target
*/
}, {
key: 'target',
set: function set(target) {
if (target !== undefined) {
if (target && typeof target === 'object' && target.nodeType === 1) {
this._target = target;
} else {
throw new Error('Invalid "target" value, use a valid Element');
}
}
},
/**
* Gets the `target` property.
* @return {String|HTMLElement}
*/
get: function get() {
return this._target;
}
}]);
return ClipboardAction;
})();
exports['default'] = ClipboardAction;
module.exports = exports['default'];
},{"select":6}],9:[function(require,module,exports){
'use strict';
exports.__esModule = true;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var _clipboardAction = require('./clipboard-action');
var _clipboardAction2 = _interopRequireDefault(_clipboardAction);
var _tinyEmitter = require('tiny-emitter');
var _tinyEmitter2 = _interopRequireDefault(_tinyEmitter);
var _goodListener = require('good-listener');
var _goodListener2 = _interopRequireDefault(_goodListener);
/**
* Base class which takes one or more elements, adds event listeners to them,
* and instantiates a new `ClipboardAction` on each click.
*/
var Clipboard = (function (_Emitter) {
_inherits(Clipboard, _Emitter);
/**
* @param {String|HTMLElement|HTMLCollection|NodeList} trigger
* @param {Object} options
*/
function Clipboard(trigger, options) {
_classCallCheck(this, Clipboard);
_Emitter.call(this);
this.resolveOptions(options);
this.listenClick(trigger);
}
/**
* Helper function to retrieve attribute value.
* @param {String} suffix
* @param {Element} element
*/
/**
* Defines if attributes would be resolved using internal setter functions
* or custom functions that were passed in the constructor.
* @param {Object} options
*/
Clipboard.prototype.resolveOptions = function resolveOptions() {
var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
this.action = typeof options.action === 'function' ? options.action : this.defaultAction;
this.target = typeof options.target === 'function' ? options.target : this.defaultTarget;
this.text = typeof options.text === 'function' ? options.text : this.defaultText;
};
/**
* Adds a click event listener to the passed trigger.
* @param {String|HTMLElement|HTMLCollection|NodeList} trigger
*/
Clipboard.prototype.listenClick = function listenClick(trigger) {
var _this = this;
this.listener = _goodListener2['default'](trigger, 'click', function (e) {
return _this.onClick(e);
});
};
/**
* Defines a new `ClipboardAction` on each click event.
* @param {Event} e
*/
Clipboard.prototype.onClick = function onClick(e) {
var trigger = e.delegateTarget || e.currentTarget;
if (this.clipboardAction) {
this.clipboardAction = null;
}
this.clipboardAction = new _clipboardAction2['default']({
action: this.action(trigger),
target: this.target(trigger),
text: this.text(trigger),
trigger: trigger,
emitter: this
});
};
/**
* Default `action` lookup function.
* @param {Element} trigger
*/
Clipboard.prototype.defaultAction = function defaultAction(trigger) {
return getAttributeValue('action', trigger);
};
/**
* Default `target` lookup function.
* @param {Element} trigger
*/
Clipboard.prototype.defaultTarget = function defaultTarget(trigger) {
var selector = getAttributeValue('target', trigger);
if (selector) {
return document.querySelector(selector);
}
};
/**
* Default `text` lookup function.
* @param {Element} trigger
*/
Clipboard.prototype.defaultText = function defaultText(trigger) {
return getAttributeValue('text', trigger);
};
/**
* Destroy lifecycle.
*/
Clipboard.prototype.destroy = function destroy() {
this.listener.destroy();
if (this.clipboardAction) {
this.clipboardAction.destroy();
this.clipboardAction = null;
}
};
return Clipboard;
})(_tinyEmitter2['default']);
function getAttributeValue(suffix, element) {
var attribute = 'data-clipboard-' + suffix;
if (!element.hasAttribute(attribute)) {
return;
}
return element.getAttribute(attribute);
}
exports['default'] = Clipboard;
module.exports = exports['default'];
},{"./clipboard-action":8,"good-listener":5,"tiny-emitter":7}]},{},[9])(9)
});
\ No newline at end of file
;(function () {
'use strict';
/**
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
*
* @codingstandard ftlabs-jsv2
* @copyright The Financial Times Limited [All Rights Reserved]
* @license MIT License (see LICENSE.txt)
*/
/*jslint browser:true, node:true*/
/*global define, Event, Node*/
/**
* Instantiate fast-clicking listeners on the specified layer.
*
* @constructor
* @param {Element} layer The layer to listen on
* @param {Object} [options={}] The options to override the defaults
*/
function FastClick(layer, options) {
var oldOnClick;
options = options || {};
/**
* Whether a click is currently being tracked.
*
* @type boolean
*/
this.trackingClick = false;
/**
* Timestamp for when click tracking started.
*
* @type number
*/
this.trackingClickStart = 0;
/**
* The element being tracked for a click.
*
* @type EventTarget
*/
this.targetElement = null;
/**
* X-coordinate of touch start event.
*
* @type number
*/
this.touchStartX = 0;
/**
* Y-coordinate of touch start event.
*
* @type number
*/
this.touchStartY = 0;
/**
* ID of the last touch, retrieved from Touch.identifier.
*
* @type number
*/
this.lastTouchIdentifier = 0;
/**
* Touchmove boundary, beyond which a click will be cancelled.
*
* @type number
*/
this.touchBoundary = options.touchBoundary || 10;
/**
* The FastClick layer.
*
* @type Element
*/
this.layer = layer;
/**
* The minimum time between tap(touchstart and touchend) events
*
* @type number
*/
this.tapDelay = options.tapDelay || 200;
/**
* The maximum time for a tap
*
* @type number
*/
this.tapTimeout = options.tapTimeout || 700;
if (FastClick.notNeeded(layer)) {
return;
}
// Some old versions of Android don't have Function.prototype.bind
function bind(method, context) {
return function() { return method.apply(context, arguments); };
}
var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];
var context = this;
for (var i = 0, l = methods.length; i < l; i++) {
context[methods[i]] = bind(context[methods[i]], context);
}
// Set up event handlers as required
if (deviceIsAndroid) {
layer.addEventListener('mouseover', this.onMouse, true);
layer.addEventListener('mousedown', this.onMouse, true);
layer.addEventListener('mouseup', this.onMouse, true);
}
layer.addEventListener('click', this.onClick, true);
layer.addEventListener('touchstart', this.onTouchStart, false);
layer.addEventListener('touchmove', this.onTouchMove, false);
layer.addEventListener('touchend', this.onTouchEnd, false);
layer.addEventListener('touchcancel', this.onTouchCancel, false);
// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
// which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick
// layer when they are cancelled.
if (!Event.prototype.stopImmediatePropagation) {
layer.removeEventListener = function(type, callback, capture) {
var rmv = Node.prototype.removeEventListener;
if (type === 'click') {
rmv.call(layer, type, callback.hijacked || callback, capture);
} else {
rmv.call(layer, type, callback, capture);
}
};
layer.addEventListener = function(type, callback, capture) {
var adv = Node.prototype.addEventListener;
if (type === 'click') {
adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {
if (!event.propagationStopped) {
callback(event);
}
}), capture);
} else {
adv.call(layer, type, callback, capture);
}
};
}
// If a handler is already declared in the element's onclick attribute, it will be fired before
// FastClick's onClick handler. Fix this by pulling out the user-defined handler function and
// adding it as listener.
if (typeof layer.onclick === 'function') {
// Android browser on at least 3.2 requires a new reference to the function in layer.onclick
// - the old one won't work if passed to addEventListener directly.
oldOnClick = layer.onclick;
layer.addEventListener('click', function(event) {
oldOnClick(event);
}, false);
layer.onclick = null;
}
}
/**
* Windows Phone 8.1 fakes user agent string to look like Android and iPhone.
*
* @type boolean
*/
var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0;
/**
* Android requires exceptions.
*
* @type boolean
*/
var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;
/**
* iOS requires exceptions.
*
* @type boolean
*/
var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;
/**
* iOS 4 requires an exception for select elements.
*
* @type boolean
*/
var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent);
/**
* iOS 6.0-7.* requires the target element to be manually derived
*
* @type boolean
*/
var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\d/).test(navigator.userAgent);
/**
* BlackBerry requires exceptions.
*
* @type boolean
*/
var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;
/**
* Determine whether a given element requires a native click.
*
* @param {EventTarget|Element} target Target DOM element
* @returns {boolean} Returns true if the element needs a native click
*/
FastClick.prototype.needsClick = function(target) {
switch (target.nodeName.toLowerCase()) {
// Don't send a synthetic click to disabled inputs (issue #62)
case 'button':
case 'select':
case 'textarea':
if (target.disabled) {
return true;
}
break;
case 'input':
// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)
if ((deviceIsIOS && target.type === 'file') || target.disabled) {
return true;
}
break;
case 'label':
case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames
case 'video':
return true;
}
return (/\bneedsclick\b/).test(target.className);
};
/**
* Determine whether a given element requires a call to focus to simulate click into element.
*
* @param {EventTarget|Element} target Target DOM element
* @returns {boolean} Returns true if the element requires a call to focus to simulate native click.
*/
FastClick.prototype.needsFocus = function(target) {
switch (target.nodeName.toLowerCase()) {
case 'textarea':
return true;
case 'select':
return !deviceIsAndroid;
case 'input':
switch (target.type) {
case 'button':
case 'checkbox':
case 'file':
case 'image':
case 'radio':
case 'submit':
return false;
}
// No point in attempting to focus disabled inputs
return !target.disabled && !target.readOnly;
default:
return (/\bneedsfocus\b/).test(target.className);
}
};
/**
* Send a click event to the specified element.
*
* @param {EventTarget|Element} targetElement
* @param {Event} event
*/
FastClick.prototype.sendClick = function(targetElement, event) {
var clickEvent, touch;
// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
if (document.activeElement && document.activeElement !== targetElement) {
document.activeElement.blur();
}
touch = event.changedTouches[0];
// Synthesise a click event, with an extra attribute so it can be tracked
clickEvent = document.createEvent('MouseEvents');
clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
clickEvent.forwardedTouchEvent = true;
targetElement.dispatchEvent(clickEvent);
};
FastClick.prototype.determineEventType = function(targetElement) {
//Issue #159: Android Chrome Select Box does not open with a synthetic click event
if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {
return 'mousedown';
}
return 'click';
};
/**
* @param {EventTarget|Element} targetElement
*/
FastClick.prototype.focus = function(targetElement) {
var length;
// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.
if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {
length = targetElement.value.length;
targetElement.setSelectionRange(length, length);
} else {
targetElement.focus();
}
};
/**
* Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.
*
* @param {EventTarget|Element} targetElement
*/
FastClick.prototype.updateScrollParent = function(targetElement) {
var scrollParent, parentElement;
scrollParent = targetElement.fastClickScrollParent;
// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the
// target element was moved to another parent.
if (!scrollParent || !scrollParent.contains(targetElement)) {
parentElement = targetElement;
do {
if (parentElement.scrollHeight > parentElement.offsetHeight) {
scrollParent = parentElement;
targetElement.fastClickScrollParent = parentElement;
break;
}
parentElement = parentElement.parentElement;
} while (parentElement);
}
// Always update the scroll top tracker if possible.
if (scrollParent) {
scrollParent.fastClickLastScrollTop = scrollParent.scrollTop;
}
};
/**
* @param {EventTarget} targetElement
* @returns {Element|EventTarget}
*/
FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {
// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
if (eventTarget.nodeType === Node.TEXT_NODE) {
return eventTarget.parentNode;
}
return eventTarget;
};
/**
* On touch start, record the position and scroll offset.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onTouchStart = function(event) {
var targetElement, touch, selection;
// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
if (event.targetTouches.length > 1) {
return true;
}
targetElement = this.getTargetElementFromEventTarget(event.target);
touch = event.targetTouches[0];
if (deviceIsIOS) {
// Only trusted events will deselect text on iOS (issue #49)
selection = window.getSelection();
if (selection.rangeCount && !selection.isCollapsed) {
return true;
}
if (!deviceIsIOS4) {
// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):
// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched
// with the same identifier as the touch event that previously triggered the click that triggered the alert.
// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an
// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.
// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,
// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,
// random integers, it's safe to to continue if the identifier is 0 here.
if (touch.identifier && touch.identifier === this.lastTouchIdentifier) {
event.preventDefault();
return false;
}
this.lastTouchIdentifier = touch.identifier;
// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:
// 1) the user does a fling scroll on the scrollable layer
// 2) the user stops the fling scroll with another tap
// then the event.target of the last 'touchend' event will be the element that was under the user's finger
// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check
// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).
this.updateScrollParent(targetElement);
}
}
this.trackingClick = true;
this.trackingClickStart = event.timeStamp;
this.targetElement = targetElement;
this.touchStartX = touch.pageX;
this.touchStartY = touch.pageY;
// Prevent phantom clicks on fast double-tap (issue #36)
if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
event.preventDefault();
}
return true;
};
/**
* Based on a touchmove event object, check whether the touch has moved past a boundary since it started.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.touchHasMoved = function(event) {
var touch = event.changedTouches[0], boundary = this.touchBoundary;
if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {
return true;
}
return false;
};
/**
* Update the last position.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onTouchMove = function(event) {
if (!this.trackingClick) {
return true;
}
// If the touch has moved, cancel the click tracking
if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {
this.trackingClick = false;
this.targetElement = null;
}
return true;
};
/**
* Attempt to find the labelled control for the given label element.
*
* @param {EventTarget|HTMLLabelElement} labelElement
* @returns {Element|null}
*/
FastClick.prototype.findControl = function(labelElement) {
// Fast path for newer browsers supporting the HTML5 control attribute
if (labelElement.control !== undefined) {
return labelElement.control;
}
// All browsers under test that support touch events also support the HTML5 htmlFor attribute
if (labelElement.htmlFor) {
return document.getElementById(labelElement.htmlFor);
}
// If no for attribute exists, attempt to retrieve the first labellable descendant element
// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label
return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');
};
/**
* On touch end, determine whether to send a click event at once.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onTouchEnd = function(event) {
var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
if (!this.trackingClick) {
return true;
}
// Prevent phantom clicks on fast double-tap (issue #36)
if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
this.cancelNextClick = true;
return true;
}
if ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {
return true;
}
// Reset to prevent wrong click cancel on input (issue #156).
this.cancelNextClick = false;
this.lastClickTime = event.timeStamp;
trackingClickStart = this.trackingClickStart;
this.trackingClick = false;
this.trackingClickStart = 0;
// On some iOS devices, the targetElement supplied with the event is invalid if the layer
// is performing a transition or scroll, and has to be re-detected manually. Note that
// for this to function correctly, it must be called *after* the event target is checked!
// See issue #57; also filed as rdar://13048589 .
if (deviceIsIOSWithBadTarget) {
touch = event.changedTouches[0];
// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null
targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;
targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;
}
targetTagName = targetElement.tagName.toLowerCase();
if (targetTagName === 'label') {
forElement = this.findControl(targetElement);
if (forElement) {
this.focus(targetElement);
if (deviceIsAndroid) {
return false;
}
targetElement = forElement;
}
} else if (this.needsFocus(targetElement)) {
// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.
// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).
if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {
this.targetElement = null;
return false;
}
this.focus(targetElement);
this.sendClick(targetElement, event);
// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.
// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)
if (!deviceIsIOS || targetTagName !== 'select') {
this.targetElement = null;
event.preventDefault();
}
return false;
}
if (deviceIsIOS && !deviceIsIOS4) {
// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled
// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).
scrollParent = targetElement.fastClickScrollParent;
if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {
return true;
}
}
// Prevent the actual click from going though - unless the target node is marked as requiring
// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.
if (!this.needsClick(targetElement)) {
event.preventDefault();
this.sendClick(targetElement, event);
}
return false;
};
/**
* On touch cancel, stop tracking the click.
*
* @returns {void}
*/
FastClick.prototype.onTouchCancel = function() {
this.trackingClick = false;
this.targetElement = null;
};
/**
* Determine mouse events which should be permitted.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onMouse = function(event) {
// If a target element was never set (because a touch event was never fired) allow the event
if (!this.targetElement) {
return true;
}
if (event.forwardedTouchEvent) {
return true;
}
// Programmatically generated events targeting a specific element should be permitted
if (!event.cancelable) {
return true;
}
// Derive and check the target element to see whether the mouse event needs to be permitted;
// unless explicitly enabled, prevent non-touch click events from triggering actions,
// to prevent ghost/doubleclicks.
if (!this.needsClick(this.targetElement) || this.cancelNextClick) {
// Prevent any user-added listeners declared on FastClick element from being fired.
if (event.stopImmediatePropagation) {
event.stopImmediatePropagation();
} else {
// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
event.propagationStopped = true;
}
// Cancel the event
event.stopPropagation();
event.preventDefault();
return false;
}
// If the mouse event is permitted, return true for the action to go through.
return true;
};
/**
* On actual clicks, determine whether this is a touch-generated click, a click action occurring
* naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or
* an actual click which should be permitted.
*
* @param {Event} event
* @returns {boolean}
*/
FastClick.prototype.onClick = function(event) {
var permitted;
// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
if (this.trackingClick) {
this.targetElement = null;
this.trackingClick = false;
return true;
}
// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.
if (event.target.type === 'submit' && event.detail === 0) {
return true;
}
permitted = this.onMouse(event);
// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.
if (!permitted) {
this.targetElement = null;
}
// If clicks are permitted, return true for the action to go through.
return permitted;
};
/**
* Remove all FastClick's event listeners.
*
* @returns {void}
*/
FastClick.prototype.destroy = function() {
var layer = this.layer;
if (deviceIsAndroid) {
layer.removeEventListener('mouseover', this.onMouse, true);
layer.removeEventListener('mousedown', this.onMouse, true);
layer.removeEventListener('mouseup', this.onMouse, true);
}
layer.removeEventListener('click', this.onClick, true);
layer.removeEventListener('touchstart', this.onTouchStart, false);
layer.removeEventListener('touchmove', this.onTouchMove, false);
layer.removeEventListener('touchend', this.onTouchEnd, false);
layer.removeEventListener('touchcancel', this.onTouchCancel, false);
};
/**
* Check whether FastClick is needed.
*
* @param {Element} layer The layer to listen on
*/
FastClick.notNeeded = function(layer) {
var metaViewport;
var chromeVersion;
var blackberryVersion;
var firefoxVersion;
// Devices that don't support touch don't need FastClick
if (typeof window.ontouchstart === 'undefined') {
return true;
}
// Chrome version - zero for other browsers
chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
if (chromeVersion) {
if (deviceIsAndroid) {
metaViewport = document.querySelector('meta[name=viewport]');
if (metaViewport) {
// Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89)
if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
return true;
}
// Chrome 32 and above with width=device-width or less don't need FastClick
if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {
return true;
}
}
// Chrome desktop doesn't need FastClick (issue #15)
} else {
return true;
}
}
if (deviceIsBlackBerry10) {
blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);
// BlackBerry 10.3+ does not require Fastclick library.
// https://github.com/ftlabs/fastclick/issues/251
if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {
metaViewport = document.querySelector('meta[name=viewport]');
if (metaViewport) {
// user-scalable=no eliminates click delay.
if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
return true;
}
// width=device-width (or less than device-width) eliminates click delay.
if (document.documentElement.scrollWidth <= window.outerWidth) {
return true;
}
}
}
}
// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)
if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {
return true;
}
// Firefox version - zero for other browsers
firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
if (firefoxVersion >= 27) {
// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896
metaViewport = document.querySelector('meta[name=viewport]');
if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {
return true;
}
}
// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version
// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx
if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {
return true;
}
return false;
};
/**
* Factory method for creating a FastClick object
*
* @param {Element} layer The layer to listen on
* @param {Object} [options={}] The options to override the defaults
*/
FastClick.attach = function(layer, options) {
return new FastClick(layer, options);
};
if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
// AMD. Register as an anonymous module.
define(function() {
return FastClick;
});
} else if (typeof module !== 'undefined' && module.exports) {
module.exports = FastClick.attach;
module.exports.FastClick = FastClick;
} else {
window.FastClick = FastClick;
}
}());
function validateEmail(email) {
var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(email);
}
function zero_pad(num) {
zero = 2 - num.toString().length + 1;
return Array(+(zero > 0 && zero)).join("0") + num;
}
function format_time(seconds) {
if (isNaN(seconds)) seconds = 0;
return zero_pad(parseInt(seconds/60)) + ":" + zero_pad(parseInt(seconds%60));
}
var url_to_links_rx = /(^|[\s\n]|>)((?:https?|ftp):\/\/[\-A-Z0-9+\u0026\u2019@#\/%?=()~_|!:,.;]*[\-A-Z0-9+\u0026@#\/%=~()_|])/gi;
function urls_to_links(text) {
return text.replace(url_to_links_rx, "$1<a target='_blank' href='$2'>$2</a>");
}
// http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript
function get_query_param(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
// http://stackoverflow.com/questions/1349404/generate-a-string-of-5-random-characters-in-javascript
function random_string(len) {
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!-_";
for (var i=0; i < len; i++) {
text += possible.charAt(Math.floor(Math.random() * possible.length));
}
return text;
}
function fixup_touches(evt) {
// convert touch events
var e = evt;
if (evt.originalEvent) e = evt.originalEvent;
evt = {
pageX: evt.pageX,
pageY: evt.pageY,
offsetX: evt.offsetX,
offsetY: evt.offsetY,
clientX: evt.clientX,
clientY: evt.clientY,
layerX: evt.layerX,
layerY: evt.layerY,
target: evt.target,
currentTarget: evt.currentTarget
};
if (e.changedTouches && e.changedTouches.length) {
evt.pageX = e.changedTouches[0].pageX;
evt.pageY = e.changedTouches[0].pageY;
} else if (e.touches && e.touches.length) {
evt.pageX = e.touches[0].pageX;
evt.pageY = e.touches[0].pageY;
}
return evt;
}
function rgb_to_hex(r, g, b) {
return ((1 << 24) + (parseInt(r) << 16) + (parseInt(g) << 8) + parseInt(b)).toString(16).slice(1);
}
function hex_to_rgba(color) {
if (!color || color == "transparent") {
return {r:0,g:0,b:0,a:0};
}
if (color.match("rgb\\(")) {
color = color.replace("rgb(","").replace(")","").split(",");
return {
r: color[0],
g: color[1],
b: color[2],
a: 255
};
}
if (color.match("rgba\\(")) {
color = color.replace("rgba(","").replace(")","").split(",");
return {
r: color[0],
g: color[1],
b: color[2],
a: color[3]*255
};
}
var r = parseInt(color.substr(1,2), 16);
var g = parseInt(color.substr(3,2), 16);
var b = parseInt(color.substr(5,2), 16);
var a = 255;
if (color.length>7) {
a = parseInt(color.substr(7,2), 16);
}
return {r:r,g:g,b:b,a:a};
}
function rgb_to_hsv () {
var rr, gg, bb,
r = arguments[0] / 255,
g = arguments[1] / 255,
b = arguments[2] / 255,
h, s,
v = Math.max(r, g, b),
diff = v - Math.min(r, g, b),
diffc = function(c) {
return (v - c) / 6 / diff + 1 / 2;
};
if (diff == 0) {
h = s = 0;
} else {
s = diff / v;
rr = diffc(r);
gg = diffc(g);
bb = diffc(b);
if (r === v) {
h = bb - gg;
} else if (g === v) {
h = (1 / 3) + rr - bb;
} else if (b === v) {
h = (2 / 3) + gg - rr;
}
if (h < 0) {
h += 1;
} else if (h > 1) {
h -= 1;
}
}
return {
h: h || 0,
s: s || 0,
v: v || 0
};
}
// values?
function hsv_to_rgb(h, s, v) {
var r, g, b, i, f, p, q, t;
if (h && s === undefined && v === undefined) {
s = h.s, v = h.v, h = h.h;
}
i = Math.floor(h * 6);
f = h * 6 - i;
p = v * (1 - s);
q = v * (1 - f * s);
t = v * (1 - (1 - f) * s);
switch (i % 6) {
case 0: r = v, g = t, b = p; break;
case 1: r = q, g = v, b = p; break;
case 2: r = p, g = v, b = t; break;
case 3: r = p, g = q, b = v; break;
case 4: r = t, g = p, b = v; break;
case 5: r = v, g = p, b = q; break;
}
return {
r: Math.round(r * 255),
g: Math.round(g * 255),
b: Math.round(b * 255)
};
}
temp_grid_canvas = document.createElement("canvas");
function render_grid(w,h,divisions) {
temp_grid_canvas.width = w;
temp_grid_canvas.height = h;
var step = w / divisions;
var ctx = temp_grid_canvas.getContext('2d');
ctx.strokeStyle = "#f0f0f0";
ctx.lineWidth = 1;
var gc1 = "rgba(60,60,60,0.125)";
var gc2 = "rgba(60,60,60,0.075)";
for (var y=0; y<h; y+=step) {
if (y==0) {
ctx.fillStyle = gc1;
} else {
ctx.fillStyle = gc2;
}
ctx.fillRect(0,y,w,1);
}
for (var x=0; x<h; x+=step) {
if (x==0) {
ctx.fillStyle = gc1;
} else {
ctx.fillStyle = gc2;
}
ctx.fillRect(x,0,1,h);
}
var data_url = temp_grid_canvas.toDataURL()
return data_url;
}
function focus_contenteditable(el, end) {
range = document.createRange();
if (!range || !el) return;
var p = $(el).find("p");
if (!p.length) return;
// get last paragraph
p = p[p.length-1];
range.selectNodeContents(p);
selection = window.getSelection();
selection.removeAllRanges();
if (range.toString()!="Text") {
// move cursor to the end
range.collapse(false);
}
selection.addRange(range);
el.focus();
}
function setup_exclusive_audio_video_playback() {
document.addEventListener('play', function(e) {
var tags = ["audio","video"];
for (var i=0; i<tags.length; i++) {
var tag = tags[i];
var players = document.getElementsByTagName(tag);
for (var i = 0, len = players.length; i < len; i++) {
if (players[i] != e.target) {
players[i].pause();
}
}
}
}, true);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment