├── CNAME ├── .gitignore ├── images ├── sutd.jpg ├── campus.jpg ├── sutd_night.jpg └── housing_short.jpg ├── housing ├── images │ ├── gym.jpg │ ├── ish.jpg │ ├── pool.jpg │ ├── housing.jpg │ ├── sports.jpg │ ├── sutd_room.jpg │ └── housing_title.jpg └── index.html ├── campus ├── images │ ├── 3dp_room.jpg │ ├── library.jpg │ ├── sutd_2.jpg │ ├── library_2.jpg │ ├── cohort_class.jpg │ └── fablab_l2_inside.jpg └── index.html ├── night ├── images │ └── sutd_nightlife.jpg └── index.html ├── assets ├── webfonts │ ├── fa-brands-400.eot │ ├── fa-brands-400.ttf │ ├── fa-solid-900.eot │ ├── fa-solid-900.ttf │ ├── fa-solid-900.woff │ ├── fa-brands-400.woff │ ├── fa-brands-400.woff2 │ ├── fa-regular-400.eot │ ├── fa-regular-400.ttf │ ├── fa-regular-400.woff │ ├── fa-regular-400.woff2 │ └── fa-solid-900.woff2 ├── sass │ ├── components │ │ ├── _box.scss │ │ ├── _icon.scss │ │ ├── _row.scss │ │ ├── _icons.scss │ │ ├── _arrow.scss │ │ ├── _feature-icons.scss │ │ ├── _table.scss │ │ ├── _list.scss │ │ ├── _actions.scss │ │ ├── _button.scss │ │ ├── _image.scss │ │ ├── _gallery.scss │ │ └── _form.scss │ ├── base │ │ ├── _page.scss │ │ ├── _reset.scss │ │ └── _typography.scss │ ├── libs │ │ ├── _vars.scss │ │ ├── _functions.scss │ │ ├── _mixins.scss │ │ ├── _html-grid.scss │ │ ├── _breakpoints.scss │ │ └── _vendor.scss │ ├── main.scss │ └── layout │ │ └── _wrapper.scss └── js │ ├── jquery.scrolly.min.js │ ├── browser.min.js │ ├── breakpoints.min.js │ ├── main.js │ └── util.js ├── README.md ├── LICENSE ├── index.html ├── js ├── photo-sphere-viewer.min.css └── photo-sphere-viewer.css └── LICENSE.html5up.txt /CNAME: -------------------------------------------------------------------------------- 1 | virtual.opensutd.org -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | */.DS_Store 3 | */*/.DS_Store 4 | */*/*/.DS_Store 5 | -------------------------------------------------------------------------------- /images/sutd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/images/sutd.jpg -------------------------------------------------------------------------------- /images/campus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/images/campus.jpg -------------------------------------------------------------------------------- /images/sutd_night.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/images/sutd_night.jpg -------------------------------------------------------------------------------- /housing/images/gym.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/housing/images/gym.jpg -------------------------------------------------------------------------------- /housing/images/ish.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/housing/images/ish.jpg -------------------------------------------------------------------------------- /housing/images/pool.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/housing/images/pool.jpg -------------------------------------------------------------------------------- /campus/images/3dp_room.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/campus/images/3dp_room.jpg -------------------------------------------------------------------------------- /campus/images/library.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/campus/images/library.jpg -------------------------------------------------------------------------------- /campus/images/sutd_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/campus/images/sutd_2.jpg -------------------------------------------------------------------------------- /housing/images/housing.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/housing/images/housing.jpg -------------------------------------------------------------------------------- /housing/images/sports.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/housing/images/sports.jpg -------------------------------------------------------------------------------- /images/housing_short.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/images/housing_short.jpg -------------------------------------------------------------------------------- /campus/images/library_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/campus/images/library_2.jpg -------------------------------------------------------------------------------- /housing/images/sutd_room.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/housing/images/sutd_room.jpg -------------------------------------------------------------------------------- /campus/images/cohort_class.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/campus/images/cohort_class.jpg -------------------------------------------------------------------------------- /night/images/sutd_nightlife.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/night/images/sutd_nightlife.jpg -------------------------------------------------------------------------------- /assets/webfonts/fa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/assets/webfonts/fa-brands-400.eot -------------------------------------------------------------------------------- /assets/webfonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/assets/webfonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /assets/webfonts/fa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/assets/webfonts/fa-solid-900.eot -------------------------------------------------------------------------------- /assets/webfonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/assets/webfonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /assets/webfonts/fa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/assets/webfonts/fa-solid-900.woff -------------------------------------------------------------------------------- /housing/images/housing_title.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/housing/images/housing_title.jpg -------------------------------------------------------------------------------- /assets/webfonts/fa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/assets/webfonts/fa-brands-400.woff -------------------------------------------------------------------------------- /assets/webfonts/fa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/assets/webfonts/fa-brands-400.woff2 -------------------------------------------------------------------------------- /assets/webfonts/fa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/assets/webfonts/fa-regular-400.eot -------------------------------------------------------------------------------- /assets/webfonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/assets/webfonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /assets/webfonts/fa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/assets/webfonts/fa-regular-400.woff -------------------------------------------------------------------------------- /assets/webfonts/fa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/assets/webfonts/fa-regular-400.woff2 -------------------------------------------------------------------------------- /assets/webfonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/assets/webfonts/fa-solid-900.woff2 -------------------------------------------------------------------------------- /campus/images/fablab_l2_inside.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenSUTD/virtual-campus/master/campus/images/fablab_l2_inside.jpg -------------------------------------------------------------------------------- /assets/sass/components/_box.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* Box */ 8 | 9 | .box { 10 | border: solid 2px _palette(border); 11 | border-radius: _size(border-radius); 12 | margin-bottom: _size(element-margin); 13 | padding: 1.5rem; 14 | 15 | > :last-child { 16 | margin-bottom: 0; 17 | } 18 | 19 | &.alt { 20 | border: 0; 21 | border-radius: 0; 22 | padding: 0; 23 | } 24 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # virtual-campus 2 | 3 | OpenSUTD Virtual Campus Project 4 | 5 | ## Contributors 6 | 7 | * Timothy Liu ([@tlkh](https://github.com/tlkh)) 8 | * Cher Wei Min ([@flamanta](https://github.com/flamanta)) 9 | 10 | For more information, contact [opensutd@sutd.edu.sg](mailto:opensutd@sutd.edu.sg). 11 | 12 | ## Acknowledgements 13 | 14 | We made used of: 15 | 16 | * [Paradigm Shift by HTML5up](https://html5up.net/paradigm-shift) 17 | * [JS Photo Sphere Viewer](https://photo-sphere-viewer.js.org/) 18 | * [Google VR Tour Creator](https://arvr.google.com/tourcreator/) 19 | -------------------------------------------------------------------------------- /assets/sass/components/_icon.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* Icon */ 8 | 9 | .icon { 10 | @include icon; 11 | border-bottom: none; 12 | position: relative; 13 | 14 | > .label { 15 | display: none; 16 | } 17 | 18 | &.solid { 19 | &:before { 20 | font-weight: 900; 21 | } 22 | } 23 | 24 | &.brands { 25 | &:before { 26 | font-family: 'Font Awesome 5 Brands'; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /assets/sass/components/_row.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* Row */ 8 | 9 | .row { 10 | @include html-grid(2rem); 11 | 12 | @include breakpoint('<=xlarge') { 13 | @include html-grid(2rem, 'xlarge'); 14 | } 15 | 16 | @include breakpoint('<=large') { 17 | @include html-grid(1.5rem, 'large'); 18 | } 19 | 20 | @include breakpoint('<=medium') { 21 | @include html-grid(1.5rem, 'medium'); 22 | } 23 | 24 | @include breakpoint('<=small') { 25 | @include html-grid(1.25rem, 'small'); 26 | } 27 | 28 | @include breakpoint('<=xsmall') { 29 | @include html-grid(1.25rem, 'xsmall'); 30 | } 31 | } -------------------------------------------------------------------------------- /assets/js/jquery.scrolly.min.js: -------------------------------------------------------------------------------- 1 | /* jquery.scrolly v1.0.0-dev | (c) @ajlkn | MIT licensed */ 2 | (function(e){function u(s,o){var u,a,f;if((u=e(s))[t]==0)return n;a=u[i]()[r];switch(o.anchor){case"middle":f=a-(e(window).height()-u.outerHeight())/2;break;default:case r:f=Math.max(a,0)}return typeof o[i]=="function"?f-=o[i]():f-=o[i],f}var t="length",n=null,r="top",i="offset",s="click.scrolly",o=e(window);e.fn.scrolly=function(i){var o,a,f,l,c=e(this);if(this[t]==0)return c;if(this[t]>1){for(o=0;o'); 22 | background-position: center; 23 | background-repeat: no-repeat; 24 | background-size: contain; 25 | content: ''; 26 | display: inline-block; 27 | height: 100%; 28 | position: relative; 29 | width: 3rem; 30 | } 31 | } -------------------------------------------------------------------------------- /assets/sass/base/_page.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* Basic */ 8 | 9 | // MSIE: Required for IEMobile. 10 | @-ms-viewport { 11 | width: device-width; 12 | } 13 | 14 | // MSIE: Prevents scrollbar from overlapping content. 15 | body { 16 | -ms-overflow-style: scrollbar; 17 | } 18 | 19 | // Ensures page width is always >=320px. 20 | @include breakpoint('<=xsmall') { 21 | html, body { 22 | min-width: 320px; 23 | } 24 | } 25 | 26 | // Set box model to border-box. 27 | // Based on css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice 28 | html { 29 | box-sizing: border-box; 30 | } 31 | 32 | *, *:before, *:after { 33 | box-sizing: inherit; 34 | } 35 | 36 | html { 37 | overflow-x: hidden; 38 | } 39 | 40 | body { 41 | background: _palette(bg); 42 | overflow-x: hidden; 43 | 44 | // Stops initial animations until page loads. 45 | &.is-preload { 46 | *, *:before, *:after { 47 | @include vendor('animation', 'none !important'); 48 | @include vendor('transition', 'none !important'); 49 | } 50 | } 51 | 52 | } -------------------------------------------------------------------------------- /assets/sass/libs/_vars.scss: -------------------------------------------------------------------------------- 1 | // Misc. 2 | $misc: ( 3 | z-index-base: 10000, 4 | gallery-lightbox-opacity: 0.875 5 | ); 6 | 7 | // Duration. 8 | $duration: ( 9 | transition: 0.25s, 10 | gallery-lightbox-fadein: 0.5s 11 | ); 12 | 13 | // Size. 14 | $size: ( 15 | border-radius: 0.325rem, 16 | element-height: 3rem, 17 | element-margin: 2rem, 18 | header-width: 25rem, 19 | subheader-width: 22rem, 20 | content-width: 60rem, 21 | line-width: 2px, 22 | form-gutter: 2rem, 23 | gallery-gutter: 1.25rem, 24 | ); 25 | 26 | // Font. 27 | $font: ( 28 | family: ('Source Sans Pro', Helvetica, sans-serif), 29 | family-fixed: ('Courier New', monospace), 30 | family-heading: ('Raleway', Helvetica, sans-serif), 31 | weight: 300, 32 | weight-bold: 600, 33 | weight-extrabold: 700, 34 | weight-heading: 800, 35 | weight-heading-light: 600, 36 | kerning: 0.0375em, 37 | kerning-heading: 0.175em, 38 | kerning-heading-alt: -0.05em 39 | ); 40 | 41 | // Palette. 42 | $palette: ( 43 | bg: #ffffff, 44 | fg: #000000, 45 | fg-bold: #000000, 46 | fg-light: rgba(0,0,0,0.25), 47 | border: rgba(144,144,144,0.25), 48 | border-bg: rgba(144,144,144,0.1), 49 | accent: #49fcd4, 50 | accent-border: desaturate(darken(#49fcd4, 8), 30), 51 | accent-alt: desaturate(darken(#49fcd4, 10), 20), 52 | accent-bg: transparentize(#49fcd4, 0.75) 53 | ); -------------------------------------------------------------------------------- /assets/sass/main.scss: -------------------------------------------------------------------------------- 1 | @import 'libs/vars'; 2 | @import 'libs/functions'; 3 | @import 'libs/mixins'; 4 | @import 'libs/vendor'; 5 | @import 'libs/breakpoints'; 6 | @import 'libs/html-grid'; 7 | @import 'fontawesome-all.min.css'; 8 | @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,600,700,300i,600i,700i|Raleway:600,800'); 9 | 10 | /* 11 | Paradigm Shift by HTML5 UP 12 | html5up.net | @ajlkn 13 | Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 14 | */ 15 | 16 | // Breakpoints. 17 | 18 | @include breakpoints(( 19 | default: (1681px, null ), 20 | xlarge: (1281px, 1920px ), 21 | large: (1153px, 1280px ), 22 | medium: (737px, 1152px ), 23 | small: (481px, 736px ), 24 | xsmall: (361px, 480px ), 25 | xxsmall: (null, 360px ) 26 | )); 27 | 28 | // Base. 29 | 30 | @import 'base/reset'; 31 | @import 'base/page'; 32 | @import 'base/typography'; 33 | 34 | // Component. 35 | 36 | @import 'components/row'; 37 | @import 'components/box'; 38 | @import 'components/button'; 39 | @import 'components/form'; 40 | @import 'components/icon'; 41 | @import 'components/image'; 42 | @import 'components/list'; 43 | @import 'components/actions'; 44 | @import 'components/icons'; 45 | @import 'components/table'; 46 | @import 'components/arrow'; 47 | @import 'components/gallery'; 48 | @import 'components/feature-icons'; 49 | 50 | // Layout. 51 | 52 | @import 'layout/wrapper'; -------------------------------------------------------------------------------- /assets/sass/components/_feature-icons.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* Feature Icons */ 8 | 9 | ul.feature-icons { 10 | display: flex; 11 | flex-wrap: wrap; 12 | list-style: none; 13 | margin: (_size(element-margin) * 1.5) 0; 14 | padding-left: 0; 15 | 16 | &:first-child { 17 | margin-top: 0; 18 | } 19 | 20 | li { 21 | margin: (_size(element-margin) * 1.25) 0 0 0; 22 | padding: 0.5rem 0 0 4.5rem; 23 | position: relative; 24 | width: 50%; 25 | 26 | &:before { 27 | background-image: svg-url(''); 28 | background-position: center; 29 | background-repeat: no-repeat; 30 | background-size: contain; 31 | color: _palette(fg-bold); 32 | display: block; 33 | font-size: 1.25rem; 34 | height: 3.25rem; 35 | left: 0; 36 | line-height: 3.25rem; 37 | position: absolute; 38 | text-align: center; 39 | top: 0; 40 | width: 3.25rem; 41 | } 42 | 43 | &:nth-child(1), 44 | &:nth-child(2) { 45 | margin-top: 0; 46 | } 47 | } 48 | 49 | @include breakpoint('<=small') { 50 | margin: 0 0 (_size(element-margin) * 1.5) 0; 51 | 52 | li { 53 | width: 100%; 54 | 55 | &:nth-child(2) { 56 | margin-top: (_size(element-margin) * 1); 57 | } 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /assets/sass/components/_table.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* Table */ 8 | 9 | .table-wrapper { 10 | -webkit-overflow-scrolling: touch; 11 | overflow-x: auto; 12 | } 13 | 14 | table { 15 | margin: 0 0 _size(element-margin) 0; 16 | width: 100%; 17 | 18 | tbody { 19 | tr { 20 | border: solid 1px _palette(border); 21 | border-left: 0; 22 | border-right: 0; 23 | 24 | &:nth-child(2n + 1) { 25 | background-color: _palette(border-bg); 26 | } 27 | } 28 | } 29 | 30 | td { 31 | padding: 0.75rem 0.75rem; 32 | } 33 | 34 | th { 35 | color: _palette(fg-bold); 36 | font-size: 0.9rem; 37 | font-weight: _font(weight-bold); 38 | padding: 0 0.75rem 0.75rem 0.75rem; 39 | text-align: left; 40 | } 41 | 42 | thead { 43 | border-bottom: solid 2px _palette(border); 44 | } 45 | 46 | tfoot { 47 | border-top: solid 2px _palette(border); 48 | } 49 | 50 | &.alt { 51 | border-collapse: separate; 52 | 53 | tbody { 54 | tr { 55 | td { 56 | border: solid 1px _palette(border); 57 | border-left-width: 0; 58 | border-top-width: 0; 59 | 60 | &:first-child { 61 | border-left-width: 1px; 62 | } 63 | } 64 | 65 | &:first-child { 66 | td { 67 | border-top-width: 1px; 68 | } 69 | } 70 | } 71 | } 72 | 73 | thead { 74 | border-bottom: 0; 75 | } 76 | 77 | tfoot { 78 | border-top: 0; 79 | } 80 | } 81 | } -------------------------------------------------------------------------------- /assets/js/browser.min.js: -------------------------------------------------------------------------------- 1 | /* browser.js v1.0 | @ajlkn | MIT licensed */ 2 | var browser=function(){"use strict";var e={name:null,version:null,os:null,osVersion:null,touch:null,mobile:null,_canUse:null,canUse:function(n){e._canUse||(e._canUse=document.createElement("div"));var o=e._canUse.style,r=n.charAt(0).toUpperCase()+n.slice(1);return n in o||"Moz"+r in o||"Webkit"+r in o||"O"+r in o||"ms"+r in o},init:function(){var n,o,r,i,t=navigator.userAgent;for(n="other",o=0,r=[["firefox",/Firefox\/([0-9\.]+)/],["bb",/BlackBerry.+Version\/([0-9\.]+)/],["bb",/BB[0-9]+.+Version\/([0-9\.]+)/],["opera",/OPR\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)/],["edge",/Edge\/([0-9\.]+)/],["safari",/Version\/([0-9\.]+).+Safari/],["chrome",/Chrome\/([0-9\.]+)/],["ie",/MSIE ([0-9]+)/],["ie",/Trident\/.+rv:([0-9]+)/]],i=0;i0:!!("ontouchstart"in window),e.mobile="wp"==e.os||"android"==e.os||"ios"==e.os||"bb"==e.os}};return e.init(),e}();!function(e,n){"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?module.exports=n():e.browser=n()}(this,function(){return browser}); 3 | -------------------------------------------------------------------------------- /assets/sass/components/_list.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* List */ 8 | 9 | ol { 10 | list-style: decimal; 11 | margin: 0 0 _size(element-margin) 0; 12 | padding-left: 1.25rem; 13 | 14 | li { 15 | padding-left: 0.25rem; 16 | } 17 | } 18 | 19 | ul { 20 | list-style: disc; 21 | margin: 0 0 _size(element-margin) 0; 22 | padding-left: 1rem; 23 | 24 | li { 25 | padding-left: 0.325rem; 26 | } 27 | 28 | &.alt { 29 | list-style: none; 30 | padding-left: 0; 31 | 32 | > li { 33 | border-top: solid 1px _palette(border); 34 | padding: 0.75rem 0; 35 | 36 | &:first-child { 37 | border-top: 0; 38 | padding-top: 0; 39 | } 40 | 41 | &:last-child { 42 | padding-bottom: 0; 43 | } 44 | } 45 | } 46 | 47 | &.items { 48 | list-style: none; 49 | padding-left: 0; 50 | 51 | > li { 52 | padding-left: 0; 53 | margin: 0 0 (_size(element-margin) * 1.5) 0; 54 | 55 | > h3 { 56 | margin: 0 0 (_size(element-margin) * 0.5) 0; 57 | } 58 | 59 | > :last-child { 60 | margin-bottom: 0; 61 | } 62 | 63 | &:last-child { 64 | margin-bottom: 0; 65 | } 66 | } 67 | } 68 | 69 | @include breakpoint('<=small') { 70 | &.items { 71 | > li { 72 | margin: 0 0 (_size(element-margin) * 1) 0; 73 | } 74 | } 75 | } 76 | } 77 | 78 | dl { 79 | margin: 0 0 _size(element-margin) 0; 80 | 81 | dt { 82 | display: block; 83 | font-weight: _font(weight-bold); 84 | margin: 0 0 (_size(element-margin) * 0.5) 0; 85 | } 86 | 87 | dd { 88 | margin-left: (_size(element-margin) * 0.75); 89 | } 90 | } -------------------------------------------------------------------------------- /assets/sass/base/_reset.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | // Reset. 8 | // Based on meyerweb.com/eric/tools/css/reset (v2.0 | 20110126 | License: public domain) 9 | 10 | html, body, div, span, applet, object, 11 | iframe, h1, h2, h3, h4, h5, h6, p, blockquote, 12 | pre, a, abbr, acronym, address, big, cite, 13 | code, del, dfn, em, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, b, 15 | u, i, center, dl, dt, dd, ol, ul, li, fieldset, 16 | form, label, legend, table, caption, tbody, 17 | tfoot, thead, tr, th, td, article, aside, 18 | canvas, details, embed, figure, figcaption, 19 | footer, header, hgroup, menu, nav, output, ruby, 20 | section, summary, time, mark, audio, video { 21 | margin: 0; 22 | padding: 0; 23 | border: 0; 24 | font-size: 100%; 25 | font: inherit; 26 | vertical-align: baseline; 27 | } 28 | 29 | article, aside, details, figcaption, figure, 30 | footer, header, hgroup, menu, nav, section { 31 | display: block; 32 | } 33 | 34 | body { 35 | line-height: 1; 36 | } 37 | 38 | ol, ul { 39 | list-style: none; 40 | } 41 | 42 | blockquote, q { 43 | quotes: none; 44 | 45 | &:before, 46 | &:after { 47 | content: ''; 48 | content: none; 49 | } 50 | } 51 | 52 | table { 53 | border-collapse: collapse; 54 | border-spacing: 0; 55 | } 56 | 57 | body { 58 | -webkit-text-size-adjust: none; 59 | } 60 | 61 | mark { 62 | background-color: transparent; 63 | color: inherit; 64 | } 65 | 66 | input::-moz-focus-inner { 67 | border: 0; 68 | padding: 0; 69 | } 70 | 71 | input, select, textarea { 72 | -moz-appearance: none; 73 | -webkit-appearance: none; 74 | -ms-appearance: none; 75 | appearance: none; 76 | } -------------------------------------------------------------------------------- /assets/sass/components/_actions.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* Actions */ 8 | 9 | ul.actions { 10 | @include vendor('display', 'flex'); 11 | cursor: default; 12 | list-style: none; 13 | margin-left: (_size(element-margin) * -0.5); 14 | padding-left: 0; 15 | 16 | li { 17 | padding: 0 0 0 (_size(element-margin) * 0.5); 18 | vertical-align: middle; 19 | } 20 | 21 | &.special { 22 | @include vendor('justify-content', 'center'); 23 | width: 100%; 24 | margin-left: 0; 25 | 26 | li { 27 | &:first-child { 28 | padding-left: 0; 29 | } 30 | } 31 | } 32 | 33 | &.stacked { 34 | @include vendor('flex-direction', 'column'); 35 | margin-left: 0; 36 | 37 | li { 38 | padding: (_size(element-margin) * 0.65) 0 0 0; 39 | 40 | &:first-child { 41 | padding-top: 0; 42 | } 43 | } 44 | } 45 | 46 | &.fit { 47 | width: calc(100% + #{_size(element-margin) * 0.5}); 48 | 49 | li { 50 | @include vendor('flex-grow', '1'); 51 | @include vendor('flex-shrink', '1'); 52 | width: 100%; 53 | 54 | > * { 55 | width: 100%; 56 | } 57 | } 58 | 59 | &.stacked { 60 | width: 100%; 61 | } 62 | } 63 | 64 | @include breakpoint('<=xsmall') { 65 | &:not(.fixed) { 66 | @include vendor('flex-direction', 'column'); 67 | margin-left: 0; 68 | width: 100% !important; 69 | 70 | li { 71 | @include vendor('flex-grow', '1'); 72 | @include vendor('flex-shrink', '1'); 73 | padding: (_size(element-margin) * 0.5) 0 0 0; 74 | text-align: center; 75 | width: 100%; 76 | 77 | > * { 78 | width: 100%; 79 | } 80 | 81 | &:first-child { 82 | padding-top: 0; 83 | } 84 | 85 | input[type="submit"], 86 | input[type="reset"], 87 | input[type="button"], 88 | button, 89 | .button { 90 | width: 100%; 91 | 92 | &.icon { 93 | &:before { 94 | margin-left: -0.5rem; 95 | } 96 | } 97 | } 98 | } 99 | } 100 | } 101 | } -------------------------------------------------------------------------------- /assets/sass/libs/_functions.scss: -------------------------------------------------------------------------------- 1 | /// Removes a specific item from a list. 2 | /// @author Hugo Giraudel 3 | /// @param {list} $list List. 4 | /// @param {integer} $index Index. 5 | /// @return {list} Updated list. 6 | @function remove-nth($list, $index) { 7 | 8 | $result: null; 9 | 10 | @if type-of($index) != number { 11 | @warn "$index: #{quote($index)} is not a number for `remove-nth`."; 12 | } 13 | @else if $index == 0 { 14 | @warn "List index 0 must be a non-zero integer for `remove-nth`."; 15 | } 16 | @else if abs($index) > length($list) { 17 | @warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`."; 18 | } 19 | @else { 20 | 21 | $result: (); 22 | $index: if($index < 0, length($list) + $index + 1, $index); 23 | 24 | @for $i from 1 through length($list) { 25 | 26 | @if $i != $index { 27 | $result: append($result, nth($list, $i)); 28 | } 29 | 30 | } 31 | 32 | } 33 | 34 | @return $result; 35 | 36 | } 37 | 38 | /// Gets a value from a map. 39 | /// @author Hugo Giraudel 40 | /// @param {map} $map Map. 41 | /// @param {string} $keys Key(s). 42 | /// @return {string} Value. 43 | @function val($map, $keys...) { 44 | 45 | @if nth($keys, 1) == null { 46 | $keys: remove-nth($keys, 1); 47 | } 48 | 49 | @each $key in $keys { 50 | $map: map-get($map, $key); 51 | } 52 | 53 | @return $map; 54 | 55 | } 56 | 57 | /// Gets a duration value. 58 | /// @param {string} $keys Key(s). 59 | /// @return {string} Value. 60 | @function _duration($keys...) { 61 | @return val($duration, $keys...); 62 | } 63 | 64 | /// Gets a font value. 65 | /// @param {string} $keys Key(s). 66 | /// @return {string} Value. 67 | @function _font($keys...) { 68 | @return val($font, $keys...); 69 | } 70 | 71 | /// Gets a misc value. 72 | /// @param {string} $keys Key(s). 73 | /// @return {string} Value. 74 | @function _misc($keys...) { 75 | @return val($misc, $keys...); 76 | } 77 | 78 | /// Gets a palette value. 79 | /// @param {string} $keys Key(s). 80 | /// @return {string} Value. 81 | @function _palette($keys...) { 82 | @return val($palette, $keys...); 83 | } 84 | 85 | /// Gets a size value. 86 | /// @param {string} $keys Key(s). 87 | /// @return {string} Value. 88 | @function _size($keys...) { 89 | @return val($size, $keys...); 90 | } -------------------------------------------------------------------------------- /assets/js/breakpoints.min.js: -------------------------------------------------------------------------------- 1 | /* breakpoints.js v1.0 | @ajlkn | MIT licensed */ 2 | var breakpoints=function(){"use strict";function e(e){t.init(e)}var t={list:null,media:{},events:[],init:function(e){t.list=e,window.addEventListener("resize",t.poll),window.addEventListener("orientationchange",t.poll),window.addEventListener("load",t.poll),window.addEventListener("fullscreenchange",t.poll)},active:function(e){var n,a,s,i,r,d,c;if(!(e in t.media)){if(">="==e.substr(0,2)?(a="gte",n=e.substr(2)):"<="==e.substr(0,2)?(a="lte",n=e.substr(2)):">"==e.substr(0,1)?(a="gt",n=e.substr(1)):"<"==e.substr(0,1)?(a="lt",n=e.substr(1)):"!"==e.substr(0,1)?(a="not",n=e.substr(1)):(a="eq",n=e),n&&n in t.list)if(i=t.list[n],Array.isArray(i)){if(r=parseInt(i[0]),d=parseInt(i[1]),isNaN(r)){if(isNaN(d))return;c=i[1].substr(String(d).length)}else c=i[0].substr(String(r).length);if(isNaN(r))switch(a){case"gte":s="screen";break;case"lte":s="screen and (max-width: "+d+c+")";break;case"gt":s="screen and (min-width: "+(d+1)+c+")";break;case"lt":s="screen and (max-width: -1px)";break;case"not":s="screen and (min-width: "+(d+1)+c+")";break;default:s="screen and (max-width: "+d+c+")"}else if(isNaN(d))switch(a){case"gte":s="screen and (min-width: "+r+c+")";break;case"lte":s="screen";break;case"gt":s="screen and (max-width: -1px)";break;case"lt":s="screen and (max-width: "+(r-1)+c+")";break;case"not":s="screen and (max-width: "+(r-1)+c+")";break;default:s="screen and (min-width: "+r+c+")"}else switch(a){case"gte":s="screen and (min-width: "+r+c+")";break;case"lte":s="screen and (max-width: "+d+c+")";break;case"gt":s="screen and (min-width: "+(d+1)+c+")";break;case"lt":s="screen and (max-width: "+(r-1)+c+")";break;case"not":s="screen and (max-width: "+(r-1)+c+"), screen and (min-width: "+(d+1)+c+")";break;default:s="screen and (min-width: "+r+c+") and (max-width: "+d+c+")"}}else s="("==i.charAt(0)?"screen and "+i:i;t.media[e]=!!s&&s}return t.media[e]!==!1&&window.matchMedia(t.media[e]).matches},on:function(e,n){t.events.push({query:e,handler:n,state:!1}),t.active(e)&&n()},poll:function(){var e,n;for(e=0;e', '%3E'); 70 | $svg: str-replace($svg, '&', '%26'); 71 | $svg: str-replace($svg, '#', '%23'); 72 | $svg: str-replace($svg, '{', '%7B'); 73 | $svg: str-replace($svg, '}', '%7D'); 74 | $svg: str-replace($svg, ';', '%3B'); 75 | 76 | @return url("data:image/svg+xml;charset=utf8,#{$svg}"); 77 | 78 | } -------------------------------------------------------------------------------- /assets/sass/components/_button.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* Button */ 8 | 9 | input[type="submit"], 10 | input[type="reset"], 11 | input[type="button"], 12 | button, 13 | .button { 14 | @include vendor('appearance', 'none'); 15 | @include vendor('transition', ( 16 | 'background-color #{_duration(transition)} ease-in-out', 17 | 'box-shadow #{_duration(transition)} ease-in-out', 18 | 'color #{_duration(transition)} ease-in-out' 19 | )); 20 | background-color: transparent; 21 | border-radius: _size(border-radius); 22 | border: 0; 23 | box-shadow: inset 0 0 0 2px _palette(border); 24 | color: _palette(fg-bold) !important; 25 | cursor: pointer; 26 | display: inline-block; 27 | font-family: _font(family-heading); 28 | font-size: 0.6rem; 29 | font-weight: _font(weight-heading-light); 30 | height: (_size(element-height) * 1); 31 | letter-spacing: _font(kerning-heading); 32 | line-height: (_size(element-height) * 1); 33 | padding: 0 2rem; 34 | text-align: center; 35 | text-decoration: none; 36 | text-transform: uppercase; 37 | white-space: nowrap; 38 | 39 | &:hover { 40 | box-shadow: inset 0 0 0 2px _palette(accent-alt); 41 | color: _palette(accent-alt) !important; 42 | } 43 | 44 | &:active { 45 | background-color: _palette(accent-bg); 46 | box-shadow: inset 0 0 0 2px _palette(accent-alt); 47 | color: _palette(accent-alt) !important; 48 | } 49 | 50 | &.small { 51 | font-size: 0.5rem; 52 | height: _size(element-height) * 0.75; 53 | line-height: _size(element-height) * 0.75; 54 | padding: 0 1.25rem; 55 | } 56 | 57 | &.large { 58 | font-size: 0.7rem; 59 | height: _size(element-height) * 1.0875; 60 | line-height: _size(element-height) * 1.0875; 61 | padding: 0 3.25rem; 62 | } 63 | 64 | &.wide { 65 | min-width: 13rem; 66 | } 67 | 68 | &.icon { 69 | &:before { 70 | margin-right: 0.5rem; 71 | } 72 | } 73 | 74 | &.fit { 75 | width: 100%; 76 | } 77 | 78 | &.disabled, 79 | &:disabled { 80 | @include vendor('pointer-events', 'none'); 81 | opacity: 0.25; 82 | } 83 | 84 | &.primary { 85 | background-color: _palette(accent); 86 | box-shadow: none; 87 | color: _palette(fg-bold) !important; 88 | 89 | &:hover { 90 | background-color: saturate(lighten(_palette(accent), 15), 10); 91 | } 92 | 93 | &:active { 94 | background-color: desaturate(darken(_palette(accent), 3), 10); 95 | } 96 | } 97 | 98 | @include breakpoint('<=small') { 99 | font-size: 0.7rem; 100 | height: (_size(element-height) * 1.1); 101 | line-height: (_size(element-height) * 1.1); 102 | 103 | &.large { 104 | font-size: 0.8rem; 105 | height: _size(element-height) * 1.25; 106 | line-height: _size(element-height) * 1.25; 107 | } 108 | 109 | &.small { 110 | font-size: 0.6rem; 111 | height: (_size(element-height) * 1); 112 | line-height: (_size(element-height) * 1); 113 | } 114 | } 115 | } -------------------------------------------------------------------------------- /assets/sass/libs/_html-grid.scss: -------------------------------------------------------------------------------- 1 | // html-grid.scss v1.0 | @ajlkn | MIT licensed */ 2 | 3 | // Mixins. 4 | 5 | /// Initializes the current element as an HTML grid. 6 | /// @param {mixed} $gutters Gutters (either a single number to set both column/row gutters, or a list to set them individually). 7 | /// @param {mixed} $suffix Column class suffix (optional; either a single suffix or a list). 8 | @mixin html-grid($gutters: 1.5em, $suffix: '') { 9 | 10 | // Initialize. 11 | $cols: 12; 12 | $multipliers: 0, 0.25, 0.5, 1, 1.50, 2.00; 13 | $unit: 100% / $cols; 14 | 15 | // Suffixes. 16 | $suffixes: null; 17 | 18 | @if (type-of($suffix) == 'list') { 19 | $suffixes: $suffix; 20 | } 21 | @else { 22 | $suffixes: ($suffix); 23 | } 24 | 25 | // Gutters. 26 | $guttersCols: null; 27 | $guttersRows: null; 28 | 29 | @if (type-of($gutters) == 'list') { 30 | 31 | $guttersCols: nth($gutters, 1); 32 | $guttersRows: nth($gutters, 2); 33 | 34 | } 35 | @else { 36 | 37 | $guttersCols: $gutters; 38 | $guttersRows: 0; 39 | 40 | } 41 | 42 | // Row. 43 | display: flex; 44 | flex-wrap: wrap; 45 | box-sizing: border-box; 46 | align-items: stretch; 47 | 48 | // Columns. 49 | > * { 50 | box-sizing: border-box; 51 | } 52 | 53 | // Gutters. 54 | &.gtr-uniform { 55 | > * { 56 | > :last-child { 57 | margin-bottom: 0; 58 | } 59 | } 60 | } 61 | 62 | // Alignment. 63 | &.aln-left { 64 | justify-content: flex-start; 65 | } 66 | 67 | &.aln-center { 68 | justify-content: center; 69 | } 70 | 71 | &.aln-right { 72 | justify-content: flex-end; 73 | } 74 | 75 | &.aln-top { 76 | align-items: flex-start; 77 | } 78 | 79 | &.aln-middle { 80 | align-items: center; 81 | } 82 | 83 | &.aln-bottom { 84 | align-items: flex-end; 85 | } 86 | 87 | // Step through suffixes. 88 | @each $suffix in $suffixes { 89 | 90 | // Suffix. 91 | @if ($suffix != '') { 92 | $suffix: '-' + $suffix; 93 | } 94 | @else { 95 | $suffix: ''; 96 | } 97 | 98 | // Row. 99 | 100 | // Important. 101 | > .imp#{$suffix} { 102 | order: -1; 103 | } 104 | 105 | // Columns, offsets. 106 | @for $i from 1 through $cols { 107 | > .col-#{$i}#{$suffix} { 108 | width: $unit * $i; 109 | } 110 | 111 | > .off-#{$i}#{$suffix} { 112 | margin-left: $unit * $i; 113 | } 114 | } 115 | 116 | // Step through multipliers. 117 | @each $multiplier in $multipliers { 118 | 119 | // Gutters. 120 | $class: null; 121 | 122 | @if ($multiplier != 1) { 123 | $class: '.gtr-' + ($multiplier * 100); 124 | } 125 | 126 | &#{$class} { 127 | margin-top: ($guttersRows * $multiplier * -1); 128 | margin-left: ($guttersCols * $multiplier * -1); 129 | 130 | > * { 131 | padding: ($guttersRows * $multiplier) 0 0 ($guttersCols * $multiplier); 132 | } 133 | 134 | // Uniform. 135 | &.gtr-uniform { 136 | margin-top: $guttersCols * $multiplier * -1; 137 | 138 | > * { 139 | padding-top: $guttersCols * $multiplier; 140 | } 141 | } 142 | 143 | } 144 | 145 | } 146 | 147 | } 148 | 149 | } -------------------------------------------------------------------------------- /assets/sass/components/_image.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* Image */ 8 | 9 | .image { 10 | border: 0; 11 | display: inline-block; 12 | position: relative; 13 | 14 | img { 15 | display: block; 16 | } 17 | 18 | &[data-position] { 19 | img { 20 | @include vendor('object-fit', 'cover'); 21 | display: block; 22 | position: absolute; 23 | top: 0; 24 | left: 0; 25 | width: 100%; 26 | height: 100%; 27 | } 28 | } 29 | 30 | &[data-position="top left"] { 31 | img { 32 | @include vendor('object-position', 'top left'); 33 | } 34 | } 35 | 36 | &[data-position="top"] { 37 | img { 38 | @include vendor('object-position', 'top'); 39 | } 40 | } 41 | 42 | &[data-position="top right"] { 43 | img { 44 | @include vendor('object-position', 'top right'); 45 | } 46 | } 47 | 48 | &[data-position="right"] { 49 | img { 50 | @include vendor('object-position', 'right'); 51 | } 52 | } 53 | 54 | &[data-position="bottom right"] { 55 | img { 56 | @include vendor('object-position', 'bottom right'); 57 | } 58 | } 59 | 60 | &[data-position="bottom"] { 61 | img { 62 | @include vendor('object-position', 'bottom'); 63 | } 64 | } 65 | 66 | &[data-position="bottom left"] { 67 | img { 68 | @include vendor('object-position', 'bottom left'); 69 | } 70 | } 71 | 72 | &[data-position="left"] { 73 | img { 74 | @include vendor('object-position', 'left'); 75 | } 76 | } 77 | 78 | &[data-position="center"] { 79 | img { 80 | @include vendor('object-position', 'center'); 81 | } 82 | } 83 | 84 | &[data-position="25% 25%"] { 85 | img { 86 | @include vendor('object-position', '25% 25%'); 87 | } 88 | } 89 | 90 | &[data-position="75% 25%"] { 91 | img { 92 | @include vendor('object-position', '75% 25%'); 93 | } 94 | } 95 | 96 | &[data-position="75% 75%"] { 97 | img { 98 | @include vendor('object-position', '75% 75%'); 99 | } 100 | } 101 | 102 | &[data-position="25% 75%"] { 103 | img { 104 | @include vendor('object-position', '25% 75%'); 105 | } 106 | } 107 | 108 | &.left, 109 | &.right { 110 | max-width: 40%; 111 | 112 | img { 113 | width: 100%; 114 | } 115 | } 116 | 117 | &.left { 118 | float: left; 119 | margin: 0 2rem 2rem 0; 120 | top: 0.25rem; 121 | } 122 | 123 | &.right { 124 | float: right; 125 | margin: 0 0 2rem 2rem; 126 | top: 0.25rem; 127 | } 128 | 129 | &.fit { 130 | display: block; 131 | margin: 0 0 _size(element-margin) 0; 132 | width: 100%; 133 | 134 | img { 135 | width: 100%; 136 | } 137 | } 138 | 139 | &.main { 140 | display: block; 141 | margin: (_size(element-margin) * 1.5) 0; 142 | width: 100%; 143 | 144 | img { 145 | width: 100%; 146 | } 147 | 148 | &:first-child { 149 | margin-top: 0; 150 | } 151 | } 152 | 153 | &.fill { 154 | height: 100%; 155 | left: 0; 156 | position: absolute; 157 | top: 0; 158 | width: 100%; 159 | 160 | img { 161 | //@include vendor('object-fit', 'cover'); 162 | //@include vendor('object-position', 'center'); 163 | height: 100%; 164 | left: 0; 165 | position: absolute; 166 | top: 0; 167 | width: 100%; 168 | } 169 | } 170 | } -------------------------------------------------------------------------------- /night/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SUTD Virtual Campus - Night 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 25 | 26 | 27 | 28 |
29 |
30 |
31 |

SUTD Campus at Night

32 |

SUTD Virtual Campus Tour

33 | 36 | 39 |
40 |
41 | 42 |
43 |
44 | 45 |
46 |
47 |

Campus at Night

48 |
49 |
50 |

Take a walk through our campus at night through the virtual tour below.

51 | 54 |
55 |
56 | 57 |
58 |
59 |

More Locations

60 |
61 |
62 |

Go on our other virtual tours

63 | 67 |

Learn more about SUTD

68 | 73 |

Other Student Initiatives

74 |

For other student intiatives, visit our OpenSUTD 75 | landing page. 76 |

77 |
78 |
79 | 80 | 81 |
82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /assets/sass/base/_typography.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* Typography */ 8 | 9 | html { 10 | font-size: 18pt; 11 | 12 | @include breakpoint('<=xlarge') { 13 | font-size: 13pt; 14 | } 15 | 16 | @include breakpoint('<=medium') { 17 | font-size: 14pt; 18 | } 19 | 20 | @include breakpoint('<=small') { 21 | font-size: 12pt; 22 | } 23 | 24 | @include breakpoint('<=xsmall') { 25 | font-size: 11pt; 26 | } 27 | } 28 | 29 | body { 30 | background-color: _palette(bg); 31 | color: _palette(fg); 32 | } 33 | 34 | body, input, select, textarea { 35 | color: _palette(fg-bold); 36 | font-family: _font(family); 37 | font-size: 1rem; 38 | font-weight: _font(weight); 39 | letter-spacing: _font(kerning); 40 | line-height: 2; 41 | } 42 | 43 | a { 44 | @include vendor('transition', 'border-bottom-color #{_duration(transition)} ease-in-out'); 45 | text-decoration: none; 46 | color: _palette(fg-bold); 47 | border-bottom: dotted 1px; 48 | 49 | &:hover { 50 | text-decoration: none; 51 | border-bottom-color: transparent; 52 | } 53 | } 54 | 55 | strong, b { 56 | font-weight: _font(weight-bold); 57 | color: _palette(fg-bold); 58 | } 59 | 60 | em, i { 61 | font-style: italic; 62 | } 63 | 64 | p { 65 | margin: 0 0 _size(element-margin) 0; 66 | } 67 | 68 | h1, h2, h3, h4, h5, h6 { 69 | color: _palette(fg-bold); 70 | font-family: _font(family-heading); 71 | font-weight: _font(weight-heading-light); 72 | letter-spacing: _font(kerning-heading); 73 | line-height: 1.75; 74 | margin: 0 0 (_size(element-margin) * 0.75) 0; 75 | text-transform: uppercase; 76 | 77 | a { 78 | color: inherit; 79 | text-decoration: none; 80 | } 81 | } 82 | 83 | h1 { 84 | font-family: _font(family); 85 | font-size: 5rem; 86 | font-weight: _font(weight-extrabold); 87 | letter-spacing: _font(kerning-heading-alt); 88 | line-height: 1.1; 89 | margin: 0 0 (_size(element-margin) * 0.75) 0; 90 | text-transform: none; 91 | } 92 | 93 | h2 { 94 | font-size: 1.25rem; 95 | font-weight: _font(weight-heading); 96 | margin: 0 0 _size(element-margin) 0; 97 | } 98 | 99 | h3 { 100 | font-size: 0.875rem; 101 | } 102 | 103 | h4 { 104 | font-size: 0.875rem; 105 | } 106 | 107 | h5 { 108 | font-size: 0.75rem; 109 | } 110 | 111 | h6 { 112 | font-size: 0.625rem; 113 | } 114 | 115 | @include breakpoint('<=small') { 116 | h1 { 117 | font-size: 4.5rem; 118 | line-height: 1.1; 119 | } 120 | 121 | h2 { 122 | font-size: 1.25rem; 123 | line-height: 1.7; 124 | } 125 | 126 | h3 { 127 | font-size: 0.9rem; 128 | } 129 | 130 | h4 { 131 | font-size: 0.75rem; 132 | } 133 | 134 | h5 { 135 | font-size: 0.675rem; 136 | } 137 | } 138 | 139 | @include breakpoint('<=xxsmall') { 140 | h1 { 141 | font-size: 3.75rem; 142 | } 143 | 144 | h2 { 145 | font-size: 1.125rem; 146 | } 147 | 148 | h3 { 149 | font-size: 0.8rem; 150 | } 151 | 152 | h4 { 153 | font-size: 0.675rem; 154 | } 155 | 156 | h5 { 157 | font-size: 0.675rem; 158 | } 159 | } 160 | 161 | sub { 162 | font-size: 0.8rem; 163 | position: relative; 164 | top: 0.5rem; 165 | } 166 | 167 | sup { 168 | font-size: 0.8rem; 169 | position: relative; 170 | top: -0.5rem; 171 | } 172 | 173 | blockquote { 174 | border-left: solid 0.5rem _palette(border); 175 | font-style: italic; 176 | margin: 0 0 _size(element-margin) 0; 177 | padding: (_size(element-margin) * 0.5) 0 (_size(element-margin) * 0.5) _size(element-margin); 178 | } 179 | 180 | code { 181 | background: _palette(border-bg); 182 | border-radius: _size(border-radius); 183 | font-family: _font(family-fixed); 184 | font-size: 0.9rem; 185 | margin: 0 0.25rem; 186 | padding: 0.25rem 0.65rem; 187 | } 188 | 189 | pre { 190 | -webkit-overflow-scrolling: touch; 191 | font-family: _font(family-fixed); 192 | font-size: 0.9rem; 193 | margin: 0 0 _size(element-margin) 0; 194 | width: 100%; 195 | 196 | code { 197 | display: block; 198 | line-height: 1.75; 199 | padding: 1rem 1.5rem; 200 | overflow-x: auto; 201 | } 202 | } 203 | 204 | hr { 205 | border: 0; 206 | border-bottom: solid 2px _palette(border); 207 | margin: (_size(element-margin) * 1.5) 0; 208 | 209 | &.major { 210 | margin: (_size(element-margin) * 2.5) 0; 211 | } 212 | 213 | @include breakpoint('<=small') { 214 | &.major { 215 | margin: (_size(element-margin) * 1.5) 0; 216 | } 217 | } 218 | } -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SUTD Virtual Campus 6 | 7 | 8 | 9 | 10 | 19 | 20 | 21 | 22 |
23 |
24 |
25 |

SUTD Virtual Campus

26 |

Explore the SUTD campus virtually

27 | 30 | 35 |
36 |
37 | 38 |
39 |
40 | 41 |
42 |
43 |

What's this?

44 |
45 |
46 |

What's this?

47 |

48 | Take a walk through and learn more about our beautiful campus 49 | through a series of photos and immersive photo spheres.
50 | There are currently three tours: main campus, housing and recreation, as well as a night walk.

53 |
54 |
55 | 56 |
57 |
58 |

Main Campus

59 |
60 |
61 | 62 |

Explore SUTD's main campus buildings.

63 | 68 |
69 |
70 | 71 |
72 |
73 |

Student Housing

74 |
75 |
76 | 77 |

78 | Explore our housing and recreational facilities. 79 |

80 | 83 |
84 |
85 | 86 |
87 |
88 |

Night Walk

89 |
90 |
91 | 92 |

Explore some scenes of SUTD's campus at night.

93 | 98 |
99 |
100 | 101 |
102 |
103 |

More

104 |
105 |
106 |

Learn more about SUTD

107 | 112 |

Other Student Initiatives

113 |

For other student intiatives, visit our OpenSUTD 114 | landing page. 115 |

116 |
117 |
118 | 119 | 120 |
121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /assets/js/main.js: -------------------------------------------------------------------------------- 1 | /* 2 | Paradigm Shift by HTML5 UP 3 | html5up.net | @ajlkn 4 | Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | */ 6 | 7 | (function($) { 8 | 9 | var $window = $(window), 10 | $body = $('body'); 11 | 12 | // Breakpoints. 13 | breakpoints({ 14 | default: ['1681px', null ], 15 | xlarge: ['1281px', '1680px' ], 16 | large: ['981px', '1280px' ], 17 | medium: ['737px', '980px' ], 18 | small: ['481px', '736px' ], 19 | xsmall: ['361px', '480px' ], 20 | xxsmall: [null, '360px' ] 21 | }); 22 | 23 | // Play initial animations on page load. 24 | $window.on('load', function() { 25 | window.setTimeout(function() { 26 | $body.removeClass('is-preload'); 27 | }, 100); 28 | }); 29 | 30 | // Hack: Enable IE workarounds. 31 | if (browser.name == 'ie') 32 | $body.addClass('is-ie'); 33 | 34 | // Mobile? 35 | if (browser.mobile) 36 | $body.addClass('is-mobile'); 37 | 38 | // Scrolly. 39 | $('.scrolly') 40 | .scrolly({ 41 | offset: 100 42 | }); 43 | 44 | // Polyfill: Object fit. 45 | if (!browser.canUse('object-fit')) { 46 | 47 | $('.image[data-position]').each(function() { 48 | 49 | var $this = $(this), 50 | $img = $this.children('img'); 51 | 52 | // Apply img as background. 53 | $this 54 | .css('background-image', 'url("' + $img.attr('src') + '")') 55 | .css('background-position', $this.data('position')) 56 | .css('background-size', 'cover') 57 | .css('background-repeat', 'no-repeat'); 58 | 59 | // Hide img. 60 | $img 61 | .css('opacity', '0'); 62 | 63 | }); 64 | 65 | $('.gallery > a').each(function() { 66 | 67 | var $this = $(this), 68 | $img = $this.children('img'); 69 | 70 | // Apply img as background. 71 | $this 72 | .css('background-image', 'url("' + $img.attr('src') + '")') 73 | .css('background-position', 'center') 74 | .css('background-size', 'cover') 75 | .css('background-repeat', 'no-repeat'); 76 | 77 | // Hide img. 78 | $img 79 | .css('opacity', '0'); 80 | 81 | }); 82 | 83 | } 84 | 85 | // Gallery. 86 | $('.gallery') 87 | .on('click', 'a', function(event) { 88 | 89 | var $a = $(this), 90 | $gallery = $a.parents('.gallery'), 91 | $modal = $gallery.children('.modal'), 92 | $modalImg = $modal.find('img'), 93 | href = $a.attr('href'); 94 | 95 | // Not an image? Bail. 96 | if (!href.match(/\.(jpg|gif|png|mp4)$/)) 97 | return; 98 | 99 | // Prevent default. 100 | event.preventDefault(); 101 | event.stopPropagation(); 102 | 103 | // Locked? Bail. 104 | if ($modal[0]._locked) 105 | return; 106 | 107 | // Lock. 108 | $modal[0]._locked = true; 109 | 110 | // Set src. 111 | $modalImg.attr('src', href); 112 | 113 | // Set visible. 114 | $modal.addClass('visible'); 115 | 116 | // Focus. 117 | $modal.focus(); 118 | 119 | // Delay. 120 | setTimeout(function() { 121 | 122 | // Unlock. 123 | $modal[0]._locked = false; 124 | 125 | }, 600); 126 | 127 | }) 128 | .on('click', '.modal', function(event) { 129 | 130 | var $modal = $(this), 131 | $modalImg = $modal.find('img'); 132 | 133 | // Locked? Bail. 134 | if ($modal[0]._locked) 135 | return; 136 | 137 | // Already hidden? Bail. 138 | if (!$modal.hasClass('visible')) 139 | return; 140 | 141 | // Stop propagation. 142 | event.stopPropagation(); 143 | 144 | // Lock. 145 | $modal[0]._locked = true; 146 | 147 | // Clear visible, loaded. 148 | $modal 149 | .removeClass('loaded') 150 | 151 | // Delay. 152 | setTimeout(function() { 153 | 154 | $modal 155 | .removeClass('visible') 156 | 157 | setTimeout(function() { 158 | 159 | // Clear src. 160 | $modalImg.attr('src', ''); 161 | 162 | // Unlock. 163 | $modal[0]._locked = false; 164 | 165 | // Focus. 166 | $body.focus(); 167 | 168 | }, 475); 169 | 170 | }, 125); 171 | 172 | }) 173 | .on('keypress', '.modal', function(event) { 174 | 175 | var $modal = $(this); 176 | 177 | // Escape? Hide modal. 178 | if (event.keyCode == 27) 179 | $modal.trigger('click'); 180 | 181 | }) 182 | .on('mouseup mousedown mousemove', '.modal', function(event) { 183 | 184 | // Stop propagation. 185 | event.stopPropagation(); 186 | 187 | }) 188 | .prepend('') 189 | .find('img') 190 | .on('load', function(event) { 191 | 192 | var $modalImg = $(this), 193 | $modal = $modalImg.parents('.modal'); 194 | 195 | setTimeout(function() { 196 | 197 | // No longer visible? Bail. 198 | if (!$modal.hasClass('visible')) 199 | return; 200 | 201 | // Set loaded. 202 | $modal.addClass('loaded'); 203 | 204 | }, 275); 205 | 206 | }); 207 | 208 | })(jQuery); -------------------------------------------------------------------------------- /assets/sass/libs/_breakpoints.scss: -------------------------------------------------------------------------------- 1 | // breakpoints.scss v1.0 | @ajlkn | MIT licensed */ 2 | 3 | // Vars. 4 | 5 | /// Breakpoints. 6 | /// @var {list} 7 | $breakpoints: () !global; 8 | 9 | // Mixins. 10 | 11 | /// Sets breakpoints. 12 | /// @param {map} $x Breakpoints. 13 | @mixin breakpoints($x: ()) { 14 | $breakpoints: $x !global; 15 | } 16 | 17 | /// Wraps @content in a @media block targeting a specific orientation. 18 | /// @param {string} $orientation Orientation. 19 | @mixin orientation($orientation) { 20 | @media screen and (orientation: #{$orientation}) { 21 | @content; 22 | } 23 | } 24 | 25 | /// Wraps @content in a @media block using a given query. 26 | /// @param {string} $query Query. 27 | @mixin breakpoint($query: null) { 28 | 29 | $breakpoint: null; 30 | $op: null; 31 | $media: null; 32 | 33 | // Determine operator, breakpoint. 34 | 35 | // Greater than or equal. 36 | @if (str-slice($query, 0, 2) == '>=') { 37 | 38 | $op: 'gte'; 39 | $breakpoint: str-slice($query, 3); 40 | 41 | } 42 | 43 | // Less than or equal. 44 | @elseif (str-slice($query, 0, 2) == '<=') { 45 | 46 | $op: 'lte'; 47 | $breakpoint: str-slice($query, 3); 48 | 49 | } 50 | 51 | // Greater than. 52 | @elseif (str-slice($query, 0, 1) == '>') { 53 | 54 | $op: 'gt'; 55 | $breakpoint: str-slice($query, 2); 56 | 57 | } 58 | 59 | // Less than. 60 | @elseif (str-slice($query, 0, 1) == '<') { 61 | 62 | $op: 'lt'; 63 | $breakpoint: str-slice($query, 2); 64 | 65 | } 66 | 67 | // Not. 68 | @elseif (str-slice($query, 0, 1) == '!') { 69 | 70 | $op: 'not'; 71 | $breakpoint: str-slice($query, 2); 72 | 73 | } 74 | 75 | // Equal. 76 | @else { 77 | 78 | $op: 'eq'; 79 | $breakpoint: $query; 80 | 81 | } 82 | 83 | // Build media. 84 | @if ($breakpoint and map-has-key($breakpoints, $breakpoint)) { 85 | 86 | $a: map-get($breakpoints, $breakpoint); 87 | 88 | // Range. 89 | @if (type-of($a) == 'list') { 90 | 91 | $x: nth($a, 1); 92 | $y: nth($a, 2); 93 | 94 | // Max only. 95 | @if ($x == null) { 96 | 97 | // Greater than or equal (>= 0 / anything) 98 | @if ($op == 'gte') { 99 | $media: 'screen'; 100 | } 101 | 102 | // Less than or equal (<= y) 103 | @elseif ($op == 'lte') { 104 | $media: 'screen and (max-width: ' + $y + ')'; 105 | } 106 | 107 | // Greater than (> y) 108 | @elseif ($op == 'gt') { 109 | $media: 'screen and (min-width: ' + ($y + 1) + ')'; 110 | } 111 | 112 | // Less than (< 0 / invalid) 113 | @elseif ($op == 'lt') { 114 | $media: 'screen and (max-width: -1px)'; 115 | } 116 | 117 | // Not (> y) 118 | @elseif ($op == 'not') { 119 | $media: 'screen and (min-width: ' + ($y + 1) + ')'; 120 | } 121 | 122 | // Equal (<= y) 123 | @else { 124 | $media: 'screen and (max-width: ' + $y + ')'; 125 | } 126 | 127 | } 128 | 129 | // Min only. 130 | @else if ($y == null) { 131 | 132 | // Greater than or equal (>= x) 133 | @if ($op == 'gte') { 134 | $media: 'screen and (min-width: ' + $x + ')'; 135 | } 136 | 137 | // Less than or equal (<= inf / anything) 138 | @elseif ($op == 'lte') { 139 | $media: 'screen'; 140 | } 141 | 142 | // Greater than (> inf / invalid) 143 | @elseif ($op == 'gt') { 144 | $media: 'screen and (max-width: -1px)'; 145 | } 146 | 147 | // Less than (< x) 148 | @elseif ($op == 'lt') { 149 | $media: 'screen and (max-width: ' + ($x - 1) + ')'; 150 | } 151 | 152 | // Not (< x) 153 | @elseif ($op == 'not') { 154 | $media: 'screen and (max-width: ' + ($x - 1) + ')'; 155 | } 156 | 157 | // Equal (>= x) 158 | @else { 159 | $media: 'screen and (min-width: ' + $x + ')'; 160 | } 161 | 162 | } 163 | 164 | // Min and max. 165 | @else { 166 | 167 | // Greater than or equal (>= x) 168 | @if ($op == 'gte') { 169 | $media: 'screen and (min-width: ' + $x + ')'; 170 | } 171 | 172 | // Less than or equal (<= y) 173 | @elseif ($op == 'lte') { 174 | $media: 'screen and (max-width: ' + $y + ')'; 175 | } 176 | 177 | // Greater than (> y) 178 | @elseif ($op == 'gt') { 179 | $media: 'screen and (min-width: ' + ($y + 1) + ')'; 180 | } 181 | 182 | // Less than (< x) 183 | @elseif ($op == 'lt') { 184 | $media: 'screen and (max-width: ' + ($x - 1) + ')'; 185 | } 186 | 187 | // Not (< x and > y) 188 | @elseif ($op == 'not') { 189 | $media: 'screen and (max-width: ' + ($x - 1) + '), screen and (min-width: ' + ($y + 1) + ')'; 190 | } 191 | 192 | // Equal (>= x and <= y) 193 | @else { 194 | $media: 'screen and (min-width: ' + $x + ') and (max-width: ' + $y + ')'; 195 | } 196 | 197 | } 198 | 199 | } 200 | 201 | // String. 202 | @else { 203 | 204 | // Missing a media type? Prefix with "screen". 205 | @if (str-slice($a, 0, 1) == '(') { 206 | $media: 'screen and ' + $a; 207 | } 208 | 209 | // Otherwise, use as-is. 210 | @else { 211 | $media: $a; 212 | } 213 | 214 | } 215 | 216 | } 217 | 218 | // Output. 219 | @media #{$media} { 220 | @content; 221 | } 222 | 223 | } -------------------------------------------------------------------------------- /assets/sass/components/_gallery.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* Gallery */ 8 | 9 | @include keyframes('gallery-modal-spinner') { 10 | 0% { 11 | @include vendor('transform', 'rotate(0deg)'); 12 | } 13 | 14 | 100% { 15 | @include vendor('transform', 'rotate(360deg)'); 16 | } 17 | } 18 | 19 | .gallery { 20 | $gutter: _size(gallery-gutter); 21 | 22 | display: flex; 23 | flex-wrap: wrap; 24 | margin: ($gutter * -1) 0 0 ($gutter * -1); 25 | width: calc(100% + #{$gutter}); 26 | 27 | a { 28 | border-bottom: 0; 29 | display: block; 30 | margin: $gutter 0 0 $gutter; 31 | outline: 0; 32 | position: relative; 33 | width: calc(50% - #{$gutter}); 34 | 35 | img { 36 | display: block; 37 | height: 25vw; 38 | min-height: 18rem; 39 | object-fit: cover; 40 | object-position: center; 41 | width: 100%; 42 | } 43 | 44 | &.landscape { 45 | width: 100%; 46 | 47 | img { 48 | height: 30vw; 49 | } 50 | } 51 | 52 | &.portrait { 53 | img { 54 | height: 30vw; 55 | } 56 | } 57 | } 58 | 59 | .modal { 60 | @include vendor('display', 'flex'); 61 | @include vendor('align-items', 'center'); 62 | @include vendor('justify-content', 'center'); 63 | @include vendor('pointer-events', 'none'); 64 | @include vendor('user-select', 'none'); 65 | @include vendor('transition', ( 66 | 'opacity #{_duration(gallery-lightbox-fadein)} ease', 67 | 'visibility #{_duration(gallery-lightbox-fadein)}', 68 | 'z-index #{_duration(gallery-lightbox-fadein)}' 69 | )); 70 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 71 | background-color: transparentize(_palette(bg), 1 - _misc(gallery-lightbox-opacity)); 72 | height: 100%; 73 | left: 0; 74 | opacity: 0; 75 | outline: 0; 76 | position: fixed; 77 | top: 0; 78 | visibility: none; 79 | width: 100%; 80 | z-index: 0; 81 | 82 | &:before { 83 | @include vendor('animation', 'gallery-modal-spinner 1s infinite linear'); 84 | @include vendor('transition', 'opacity #{_duration(gallery-lightbox-fadein) * 0.5} ease'); 85 | @include vendor('transition-delay', '#{_duration(gallery-lightbox-fadein)}'); 86 | background-image: svg-url(''); 87 | background-position: center; 88 | background-repeat: no-repeat; 89 | background-size: 4rem; 90 | content: ''; 91 | display: block; 92 | height: 4rem; 93 | left: 50%; 94 | margin: -2rem 0 0 -2rem; 95 | opacity: 0; 96 | position: absolute; 97 | top: 50%; 98 | width: 4rem; 99 | } 100 | 101 | &:after { 102 | background-image: svg-url(''); 103 | background-position: center; 104 | background-repeat: no-repeat; 105 | background-size: 3rem; 106 | content: ''; 107 | cursor: pointer; 108 | display: block; 109 | height: 4rem; 110 | position: absolute; 111 | right: 0.5rem; 112 | top: 0.5rem; 113 | width: 4rem; 114 | } 115 | 116 | .inner { 117 | @include vendor('transform', 'translateY(0.75rem)'); 118 | @include vendor('transition', ( 119 | 'opacity #{_duration(gallery-lightbox-fadein) * 0.5} ease', 120 | 'transform #{_duration(gallery-lightbox-fadein) * 0.5} ease' 121 | )); 122 | opacity: 0; 123 | 124 | img { 125 | box-shadow: 0 1rem 3rem 0 rgba(0, 0, 0, 0.35); 126 | display: block; 127 | max-height: 90vh; 128 | max-width: 90vw; 129 | } 130 | } 131 | 132 | &.visible { 133 | @include vendor('pointer-events', 'auto'); 134 | opacity: 1; 135 | visibility: visible; 136 | z-index: _misc(z-index-base) + 1000; 137 | 138 | &:before { 139 | opacity: 1; 140 | } 141 | } 142 | 143 | &.loaded { 144 | .inner { 145 | @include vendor('transform', 'translateY(0)'); 146 | @include vendor('transition', ( 147 | 'opacity #{_duration(gallery-lightbox-fadein)} ease', 148 | 'transform #{_duration(gallery-lightbox-fadein)} ease' 149 | )); 150 | opacity: 1; 151 | } 152 | 153 | &:before { 154 | @include vendor('transition-delay', '0s'); 155 | opacity: 0; 156 | } 157 | } 158 | } 159 | 160 | @include breakpoint('<=medium') { 161 | a { 162 | img { 163 | height: 20rem; 164 | } 165 | 166 | &.landscape { 167 | img { 168 | height: 25rem; 169 | } 170 | } 171 | 172 | &.portrait { 173 | img { 174 | height: 25rem; 175 | } 176 | } 177 | } 178 | 179 | .modal { 180 | .inner { 181 | img { 182 | max-width: 100vw; 183 | } 184 | } 185 | } 186 | } 187 | 188 | @include breakpoint('<=small') { 189 | $gutter: (_size(gallery-gutter) * 0.5); 190 | 191 | margin: ($gutter * -1) 0 0 ($gutter * -1); 192 | width: calc(100% + #{$gutter}); 193 | 194 | a { 195 | margin: $gutter 0 0 $gutter; 196 | width: calc(50% - #{$gutter}); 197 | 198 | img { 199 | height: 20rem; 200 | } 201 | 202 | &.landscape { 203 | img { 204 | height: 20rem; 205 | } 206 | } 207 | 208 | &.portrait { 209 | img { 210 | height: 30rem; 211 | } 212 | } 213 | } 214 | } 215 | 216 | @include breakpoint('<=xsmall') { 217 | a { 218 | img { 219 | height: 12rem; 220 | min-height: 0; 221 | } 222 | 223 | &.landscape { 224 | img { 225 | height: 12rem; 226 | } 227 | } 228 | 229 | &.portrait { 230 | img { 231 | height: 14rem; 232 | } 233 | } 234 | } 235 | } 236 | } 237 | -------------------------------------------------------------------------------- /assets/sass/components/_form.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* Form */ 8 | 9 | form { 10 | margin: 0 0 _size(element-margin) 0; 11 | 12 | > :last-child { 13 | margin-bottom: 0; 14 | } 15 | 16 | > .fields { 17 | $gutter: _size(form-gutter); 18 | 19 | @include vendor('display', 'flex'); 20 | @include vendor('flex-wrap', 'wrap'); 21 | margin: ($gutter * -1) 0 _size(element-margin) ($gutter * -1); 22 | width: calc(100% + #{$gutter * 2}); 23 | 24 | > .field { 25 | @include vendor('flex-grow', '0'); 26 | @include vendor('flex-shrink', '0'); 27 | padding: $gutter 0 0 $gutter; 28 | width: calc(100% - #{$gutter * 1}); 29 | 30 | > :last-child { 31 | margin-bottom: 0; 32 | } 33 | 34 | &.half { 35 | width: calc(50% - #{$gutter * 0.5}); 36 | } 37 | 38 | &.third { 39 | width: calc(#{100% / 3} - #{$gutter * (1 / 3)}); 40 | } 41 | 42 | &.quarter { 43 | width: calc(25% - #{$gutter * 0.25}); 44 | } 45 | } 46 | } 47 | 48 | @include breakpoint('<=xsmall') { 49 | > .fields { 50 | $gutter: (_size(element-margin) * 0.75); 51 | 52 | margin: ($gutter * -1) 0 _size(element-margin) ($gutter * -1); 53 | width: calc(100% + #{$gutter * 2}); 54 | 55 | > .field { 56 | padding: $gutter 0 0 $gutter; 57 | width: calc(100% - #{$gutter * 1}); 58 | 59 | &.half { 60 | width: calc(100% - #{$gutter * 1}); 61 | } 62 | 63 | &.third { 64 | width: calc(100% - #{$gutter * 1}); 65 | } 66 | 67 | &.quarter { 68 | width: calc(100% - #{$gutter * 1}); 69 | } 70 | } 71 | } 72 | } 73 | } 74 | 75 | input[type="text"], 76 | input[type="password"], 77 | input[type="email"], 78 | input[type="tel"], 79 | input[type="search"], 80 | input[type="url"], 81 | select, 82 | textarea { 83 | @include vendor('appearance', 'none'); 84 | border-radius: _size(border-radius); 85 | border: solid 2px _palette(border); 86 | color: inherit; 87 | display: block; 88 | outline: 0; 89 | padding: 0 1rem; 90 | text-decoration: none; 91 | width: 100%; 92 | 93 | &:invalid { 94 | box-shadow: none; 95 | } 96 | 97 | &:focus { 98 | border-color: _palette(accent-alt); 99 | } 100 | } 101 | 102 | label { 103 | color: _palette(fg-bold); 104 | display: block; 105 | font-family: _font(family-heading); 106 | font-size: 0.75rem; 107 | font-weight: _font(weight-heading-light); 108 | letter-spacing: _font(kerning-heading); 109 | line-height: 1.75; 110 | margin: 0 0 (_size(element-margin) * 0.5) 0; 111 | text-transform: uppercase; 112 | } 113 | 114 | input[type="text"], 115 | input[type="password"], 116 | input[type="email"], 117 | input[type="tel"], 118 | input[type="search"], 119 | input[type="url"] { 120 | height: _size(element-height); 121 | } 122 | 123 | select { 124 | background-image: svg-url(""); 125 | background-position: calc(100% - 1rem) center; 126 | background-repeat: no-repeat; 127 | background-size: 1.25rem; 128 | height: _size(element-height); 129 | padding-right: _size(element-height); 130 | text-overflow: ellipsis; 131 | 132 | option { 133 | background-color: _palette(bg); 134 | color: _palette(fg); 135 | } 136 | 137 | &:focus { 138 | &::-ms-value { 139 | background-color: transparent; 140 | } 141 | } 142 | 143 | &::-ms-expand { 144 | display: none; 145 | } 146 | } 147 | 148 | textarea { 149 | padding: 0.75rem 1rem; 150 | } 151 | 152 | input[type="checkbox"], 153 | input[type="radio"], { 154 | @include vendor('appearance', 'none'); 155 | display: block; 156 | float: left; 157 | margin-right: -2rem; 158 | opacity: 0; 159 | width: 1rem; 160 | z-index: -1; 161 | 162 | & + label { 163 | @include icon(false, solid); 164 | color: _palette(fg); 165 | cursor: pointer; 166 | display: inline-block; 167 | font-family: _font(family); 168 | font-size: 1rem; 169 | font-weight: _font(weight); 170 | letter-spacing: _font(kerning); 171 | padding-left: (_size(element-height) * 0.6) + 0.875rem; 172 | padding-right: 0.875rem; 173 | position: relative; 174 | text-transform: none; 175 | 176 | &:before { 177 | border-radius: _size(border-radius); 178 | border: solid 2px _palette(border); 179 | content: ''; 180 | display: inline-block; 181 | font-size: 0.8rem; 182 | height: (_size(element-height) * 0.75); 183 | left: 0; 184 | line-height: (_size(element-height) * 0.75); 185 | position: absolute; 186 | text-align: center; 187 | top: (_size(element-height) * -0.05); 188 | width: (_size(element-height) * 0.75); 189 | } 190 | } 191 | 192 | &:checked + label { 193 | &:before { 194 | content: '\f00c'; 195 | background-color: _palette(accent); 196 | border-color: _palette(accent); 197 | color: _palette(bg); 198 | } 199 | } 200 | 201 | &:focus + label { 202 | &:before { 203 | border-color: _palette(accent); 204 | box-shadow: 0 0 0 1px _palette(accent); 205 | } 206 | } 207 | } 208 | 209 | input[type="checkbox"] { 210 | & + label { 211 | &:before { 212 | border-radius: _size(border-radius); 213 | } 214 | } 215 | } 216 | 217 | input[type="radio"] { 218 | & + label { 219 | &:before { 220 | border-radius: 100%; 221 | } 222 | } 223 | } 224 | 225 | ::-webkit-input-placeholder { 226 | opacity: 1.0; 227 | color: _palette(fg-light) !important; 228 | } 229 | 230 | :-moz-placeholder { 231 | opacity: 1.0; 232 | color: _palette(fg-light) !important; 233 | } 234 | 235 | ::-moz-placeholder { 236 | opacity: 1.0; 237 | color: _palette(fg-light) !important; 238 | } 239 | 240 | :-ms-input-placeholder { 241 | opacity: 1.0; 242 | color: _palette(fg-light) !important; 243 | } 244 | 245 | @include breakpoint('<=small') { 246 | label { 247 | font-size: 0.675rem; 248 | } 249 | 250 | input[type="checkbox"], 251 | input[type="radio"] { 252 | & + label { 253 | font-size: 1rem; 254 | } 255 | } 256 | } 257 | 258 | @include breakpoint('<=xxsmall') { 259 | label { 260 | font-size: 0.675rem; 261 | } 262 | 263 | input[type="checkbox"], 264 | input[type="radio"] { 265 | & + label { 266 | font-size: 1rem; 267 | } 268 | } 269 | } -------------------------------------------------------------------------------- /assets/sass/libs/_vendor.scss: -------------------------------------------------------------------------------- 1 | // vendor.scss v1.0 | @ajlkn | MIT licensed */ 2 | 3 | // Vars. 4 | 5 | /// Vendor prefixes. 6 | /// @var {list} 7 | $vendor-prefixes: ( 8 | '-moz-', 9 | '-webkit-', 10 | '-ms-', 11 | '' 12 | ); 13 | 14 | /// Properties that should be vendorized. 15 | /// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org 16 | /// @var {list} 17 | $vendor-properties: ( 18 | 19 | // Animation. 20 | 'animation', 21 | 'animation-delay', 22 | 'animation-direction', 23 | 'animation-duration', 24 | 'animation-fill-mode', 25 | 'animation-iteration-count', 26 | 'animation-name', 27 | 'animation-play-state', 28 | 'animation-timing-function', 29 | 30 | // Appearance. 31 | 'appearance', 32 | 33 | // Backdrop filter. 34 | 'backdrop-filter', 35 | 36 | // Background image options. 37 | 'background-clip', 38 | 'background-origin', 39 | 'background-size', 40 | 41 | // Box sizing. 42 | 'box-sizing', 43 | 44 | // Clip path. 45 | 'clip-path', 46 | 47 | // Filter effects. 48 | 'filter', 49 | 50 | // Flexbox. 51 | 'align-content', 52 | 'align-items', 53 | 'align-self', 54 | 'flex', 55 | 'flex-basis', 56 | 'flex-direction', 57 | 'flex-flow', 58 | 'flex-grow', 59 | 'flex-shrink', 60 | 'flex-wrap', 61 | 'justify-content', 62 | 'order', 63 | 64 | // Font feature. 65 | 'font-feature-settings', 66 | 'font-language-override', 67 | 'font-variant-ligatures', 68 | 69 | // Font kerning. 70 | 'font-kerning', 71 | 72 | // Fragmented borders and backgrounds. 73 | 'box-decoration-break', 74 | 75 | // Grid layout. 76 | 'grid-column', 77 | 'grid-column-align', 78 | 'grid-column-end', 79 | 'grid-column-start', 80 | 'grid-row', 81 | 'grid-row-align', 82 | 'grid-row-end', 83 | 'grid-row-start', 84 | 'grid-template-columns', 85 | 'grid-template-rows', 86 | 87 | // Hyphens. 88 | 'hyphens', 89 | 'word-break', 90 | 91 | // Masks. 92 | 'mask', 93 | 'mask-border', 94 | 'mask-border-outset', 95 | 'mask-border-repeat', 96 | 'mask-border-slice', 97 | 'mask-border-source', 98 | 'mask-border-width', 99 | 'mask-clip', 100 | 'mask-composite', 101 | 'mask-image', 102 | 'mask-origin', 103 | 'mask-position', 104 | 'mask-repeat', 105 | 'mask-size', 106 | 107 | // Multicolumn. 108 | 'break-after', 109 | 'break-before', 110 | 'break-inside', 111 | 'column-count', 112 | 'column-fill', 113 | 'column-gap', 114 | 'column-rule', 115 | 'column-rule-color', 116 | 'column-rule-style', 117 | 'column-rule-width', 118 | 'column-span', 119 | 'column-width', 120 | 'columns', 121 | 122 | // Object fit. 123 | 'object-fit', 124 | 'object-position', 125 | 126 | // Regions. 127 | 'flow-from', 128 | 'flow-into', 129 | 'region-fragment', 130 | 131 | // Scroll snap points. 132 | 'scroll-snap-coordinate', 133 | 'scroll-snap-destination', 134 | 'scroll-snap-points-x', 135 | 'scroll-snap-points-y', 136 | 'scroll-snap-type', 137 | 138 | // Shapes. 139 | 'shape-image-threshold', 140 | 'shape-margin', 141 | 'shape-outside', 142 | 143 | // Tab size. 144 | 'tab-size', 145 | 146 | // Text align last. 147 | 'text-align-last', 148 | 149 | // Text decoration. 150 | 'text-decoration-color', 151 | 'text-decoration-line', 152 | 'text-decoration-skip', 153 | 'text-decoration-style', 154 | 155 | // Text emphasis. 156 | 'text-emphasis', 157 | 'text-emphasis-color', 158 | 'text-emphasis-position', 159 | 'text-emphasis-style', 160 | 161 | // Text size adjust. 162 | 'text-size-adjust', 163 | 164 | // Text spacing. 165 | 'text-spacing', 166 | 167 | // Transform. 168 | 'transform', 169 | 'transform-origin', 170 | 171 | // Transform 3D. 172 | 'backface-visibility', 173 | 'perspective', 174 | 'perspective-origin', 175 | 'transform-style', 176 | 177 | // Transition. 178 | 'transition', 179 | 'transition-delay', 180 | 'transition-duration', 181 | 'transition-property', 182 | 'transition-timing-function', 183 | 184 | // Unicode bidi. 185 | 'unicode-bidi', 186 | 187 | // User select. 188 | 'user-select', 189 | 190 | // Writing mode. 191 | 'writing-mode', 192 | 193 | ); 194 | 195 | /// Values that should be vendorized. 196 | /// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org 197 | /// @var {list} 198 | $vendor-values: ( 199 | 200 | // Cross fade. 201 | 'cross-fade', 202 | 203 | // Element function. 204 | 'element', 205 | 206 | // Filter function. 207 | 'filter', 208 | 209 | // Flexbox. 210 | 'flex', 211 | 'inline-flex', 212 | 213 | // Grab cursors. 214 | 'grab', 215 | 'grabbing', 216 | 217 | // Gradients. 218 | 'linear-gradient', 219 | 'repeating-linear-gradient', 220 | 'radial-gradient', 221 | 'repeating-radial-gradient', 222 | 223 | // Grid layout. 224 | 'grid', 225 | 'inline-grid', 226 | 227 | // Image set. 228 | 'image-set', 229 | 230 | // Intrinsic width. 231 | 'max-content', 232 | 'min-content', 233 | 'fit-content', 234 | 'fill', 235 | 'fill-available', 236 | 'stretch', 237 | 238 | // Sticky position. 239 | 'sticky', 240 | 241 | // Transform. 242 | 'transform', 243 | 244 | // Zoom cursors. 245 | 'zoom-in', 246 | 'zoom-out', 247 | 248 | ); 249 | 250 | // Functions. 251 | 252 | /// Removes a specific item from a list. 253 | /// @author Hugo Giraudel 254 | /// @param {list} $list List. 255 | /// @param {integer} $index Index. 256 | /// @return {list} Updated list. 257 | @function remove-nth($list, $index) { 258 | 259 | $result: null; 260 | 261 | @if type-of($index) != number { 262 | @warn "$index: #{quote($index)} is not a number for `remove-nth`."; 263 | } 264 | @else if $index == 0 { 265 | @warn "List index 0 must be a non-zero integer for `remove-nth`."; 266 | } 267 | @else if abs($index) > length($list) { 268 | @warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`."; 269 | } 270 | @else { 271 | 272 | $result: (); 273 | $index: if($index < 0, length($list) + $index + 1, $index); 274 | 275 | @for $i from 1 through length($list) { 276 | 277 | @if $i != $index { 278 | $result: append($result, nth($list, $i)); 279 | } 280 | 281 | } 282 | 283 | } 284 | 285 | @return $result; 286 | 287 | } 288 | 289 | /// Replaces a substring within another string. 290 | /// @author Hugo Giraudel 291 | /// @param {string} $string String. 292 | /// @param {string} $search Substring. 293 | /// @param {string} $replace Replacement. 294 | /// @return {string} Updated string. 295 | @function str-replace($string, $search, $replace: '') { 296 | 297 | $index: str-index($string, $search); 298 | 299 | @if $index { 300 | @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace); 301 | } 302 | 303 | @return $string; 304 | 305 | } 306 | 307 | /// Replaces a substring within each string in a list. 308 | /// @param {list} $strings List of strings. 309 | /// @param {string} $search Substring. 310 | /// @param {string} $replace Replacement. 311 | /// @return {list} Updated list of strings. 312 | @function str-replace-all($strings, $search, $replace: '') { 313 | 314 | @each $string in $strings { 315 | $strings: set-nth($strings, index($strings, $string), str-replace($string, $search, $replace)); 316 | } 317 | 318 | @return $strings; 319 | 320 | } 321 | 322 | // Mixins. 323 | 324 | /// Wraps @content in vendorized keyframe blocks. 325 | /// @param {string} $name Name. 326 | @mixin keyframes($name) { 327 | 328 | @-moz-keyframes #{$name} { @content; } 329 | @-webkit-keyframes #{$name} { @content; } 330 | @-ms-keyframes #{$name} { @content; } 331 | @keyframes #{$name} { @content; } 332 | 333 | } 334 | 335 | /// Vendorizes a declaration's property and/or value(s). 336 | /// @param {string} $property Property. 337 | /// @param {mixed} $value String/list of value(s). 338 | @mixin vendor($property, $value) { 339 | 340 | // Determine if property should expand. 341 | $expandProperty: index($vendor-properties, $property); 342 | 343 | // Determine if value should expand (and if so, add '-prefix-' placeholder). 344 | $expandValue: false; 345 | 346 | @each $x in $value { 347 | @each $y in $vendor-values { 348 | @if $y == str-slice($x, 1, str-length($y)) { 349 | 350 | $value: set-nth($value, index($value, $x), '-prefix-' + $x); 351 | $expandValue: true; 352 | 353 | } 354 | } 355 | } 356 | 357 | // Expand property? 358 | @if $expandProperty { 359 | @each $vendor in $vendor-prefixes { 360 | #{$vendor}#{$property}: #{str-replace-all($value, '-prefix-', $vendor)}; 361 | } 362 | } 363 | 364 | // Expand just the value? 365 | @elseif $expandValue { 366 | @each $vendor in $vendor-prefixes { 367 | #{$property}: #{str-replace-all($value, '-prefix-', $vendor)}; 368 | } 369 | } 370 | 371 | // Neither? Treat them as a normal declaration. 372 | @else { 373 | #{$property}: #{$value}; 374 | } 375 | 376 | } -------------------------------------------------------------------------------- /campus/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SUTD Virtual Campus - Campus 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 25 | 26 | 27 | 28 |
29 |
30 |
31 |

SUTD Main Campus

32 |

SUTD Virtual Campus Tour

33 | 36 | 41 |
42 |
43 | 44 |
45 |
46 | 47 |
48 |
49 |

Building 1

50 |
51 |
52 |

Building 1

53 |

Cohort Classrooms

54 |

55 | SUTD's cohort classrooms are reconfigurable spaces for various activities. Freshmore students have 56 | round-the-clock access to their own cohort classrooms to be used for lessons and student-initiated activities. 57 | Whiteboards lining the walls of the classroom encourage collaboration among students and lecturers, enhancing 58 | the learning experience. 59 |

60 | 61 |

SUTD Library

62 |

63 | The SUTD Library has a unique design and offers a truly sensory 64 | experience from discovery through serendipity to a touch and feel 65 | with spaces to read, research and reflect. 66 |

67 | 68 |

69 |
The following virtual tour takes you through Building 1, from 70 | the front yard near Upper Changi MRT to the link bridge between 71 | Buildings 1 and 2. 72 |

73 | 76 |
77 |
78 |
79 |
80 |

Building 2

81 |
82 |
83 |

Building 2

84 |

Labs

85 |

86 | Unleash your creativity and reveal new possibilities with 87 | laboratories such as the Photo and Video Lab, Data Analytics Lab and 88 | the Innovative Digital Arts Lab (iDiA Lab). For a full list of our academic facilities, check out: 89 | https://sutd.edu.sg/Education/Academic-Facilities 91 |

92 |

Campus Center

93 |

94 | Located in between Buildings 1, 2 and 3, the Campus Center is the 95 | epicentre of activities in SUTD. 96 |

97 | 100 |
101 |
102 | 103 |
104 |
105 |

FabLab

106 |
107 |
108 |

Fabrication Lab

109 |

110 | The SUTD Fabrication Lab (Fab Lab) is designed to allow students to quickly bring forth their designs into 111 | reality, with rapid prototyping machines such as laser cutters, 3D printers and other machines available for 112 | all students to use. The friendly staff are also available during office hours to offer their knowledge and 113 | expertise, giving advice on materials selection and fabrication techniques. The Fab Lab supports SUTD’s strong 114 | interdisciplinary design focused pedagogy, with emphasis on both theory and practical work. In house 115 | fabrication of parts allows rapid turnaround for projects, enabling students to iterate and refine their 116 | prototypes with less hassle. 117 |

118 |

24/7 Maker Space

119 |

The 24-hour access Maker Space 2 allows students to realise their ideas the moment it occurs to them, any 120 | time of the day or week. The space is equipped with drill presses, bend-saws, sanding machines, and other 121 | tools for working on basic materials. From academic projects to personal interests, Maker Space 2 serves as a 122 | convenient space for students to materialise their ideas.

123 |
124 |

Computational Fabrication

125 |

Students have basic access to 3D printers and laser cutters, which are used for both academic and personal 126 | projects. This allows our students to explore their design concepts easily, as well as assisting in 127 | communicating ideas to clients, colleagues and collaborators.

128 |
129 |

Specialised Facilities

130 |

There are other specialised facilities in the Fab Lab, including an Electronics Lab, a Wood Working Section, 131 | and a Metal Working Section, equipped with machines for advanced users. Students who wish to use such machines 132 | will need to go through training and certification before being allowed to make bookings.

133 | 136 |
137 |
138 | 139 |
140 |
141 |

More Locations

142 |
143 |
144 |

Go on our other virtual tours

145 | 149 |

Learn more about SUTD

150 | 155 |

Other Student Initiatives

156 |

For other student intiatives, visit our OpenSUTD 157 | landing page. 158 |

159 |
160 |
161 | 162 | 163 |
164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 186 | 187 | 188 | -------------------------------------------------------------------------------- /housing/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SUTD Virtual Campus - Housing 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 25 | 26 | 27 | 28 |
29 |
30 |
31 |

Housing Recreation

32 |

SUTD Virtual Campus Tour

33 | 36 | 41 |
42 |
43 | 44 |
45 |
46 | 47 |
48 |
49 |

Student Housing

50 |
51 |
52 |

Student Housing

53 | 54 |

55 | SUTD's staff and student housing blocks are conveniently located on the SUTD campus, just a stone's 56 | throw away from the academic blocks and sports facilities. It usually takes residents just 10 57 | minutes to get to class from their rooms! 58 | 59 | Freshmore undergraduates are required to reside at student housing, specifically in double rooms. 60 | Designed to promote interaction and collaboration, residential living aims to foster a sense of 61 | community and ownership, and build strong friendships starting from the students’ very first year, 62 | where classmates are grouped into clusters in the housing blocks. 63 |

64 | 65 |

Group Study Room

66 |

Each block also has group study rooms, each outfitted with clusters of tables for students who prefer 67 | to study in groups. These rooms are made for smaller study groups, though they can also be used for 68 | discussions.

69 |

Recreational Room

70 |

Not all the common spaces in Hostel are for studies of course. Each block has two recreational rooms, 71 | fitted with a TV screen and beanbags where residents can just relax after a long day of studying. 72 |

73 |

Hostel Lounge

74 |

75 | The hostel lounge is a common space for residents to use, with a board game 76 | collection of award winning titles that are available for loan, residents are welcomed to 77 | visit the lounge and relax with some fun board games. There are even boards in the hostel lounge 78 | that residents can write on using whiteboard markers, facilitating discussions. 79 |

80 |

Backspace

81 |

82 | At the back of Block 55, there is another open-air recreational space for the residents, aptly named 83 | Backspace. This open space has been outfitted with tables and chairs, and groups of residents often 84 | make it one of their supper locations at night, especially when there’s a nice cool breeze! 85 |

86 |

Music Room

87 |

88 | Part of the Backspace includes a music room for students to jam in. A soundproof air-conditioned 89 | room that is open to residents 24/7, the music room is commonly used by students who want to 90 | practise and have a jam session together without disturbing the other residents. 91 |

92 | 95 |
96 |
97 | 98 |
99 |
100 |

Recreational

101 |
102 |
103 |

Recreational Facilities

104 |

The Sports and Recreation Centre has a wide range of facilities to cater to the different interests 105 | and needs of its students and staff. Vending machines and benches also make it easy for students to 106 | grab a quick supper or drink after a good workout session.

107 | 108 |

Gym

109 |

110 | The equipment and space in the gym is open for all students during its opening hours. Run by staff 111 | members, the gym is a good place to work out after a day in class. 112 |

113 | 114 |

Indoor Sports Hall

115 |

116 | The sports and recreational centre has 2 indoor sports halls that are mainly used as training spaces 117 | and as event venues. They are open for booking by fifth rows and the public for training sessions 118 | and as event venues. 119 |

120 | 121 |

Pool

122 |

There is an olympic sized swimming pool that is open to all students during the opening hours, 123 | perfect for use on a hot day.

124 | 125 |

Dance Studio

126 |

127 | The multiple dance studios mainly allow for the various dance and martial art Fifth Rows to have a 128 | formal space to practice with its wooden floors and mirrors. 129 |

130 |

Track / Field

131 |

132 | The track and the field is one part of the sports and recreational centre that is impossible to 133 | miss. It is open to all students and staff till 11pm daily, and is commonly used by the sports 134 | cluster for their training sessions. 135 |

136 | 139 |
140 |
141 | 142 |
143 |
144 |

Chinese Structures

145 |
146 |
147 |

Chinese Structures

148 |

149 | On campus are two antique houses, a pavilion and a Chinese opera stage from the Ming and Qing 150 | dynasties. They have been restored to their original glory by a team of craftsmen from Suzhou, 151 | China, and are 152 | used as teaching or recreational spaces. 153 |

154 | 157 |
158 |
159 | 160 |
161 |
162 |

More Locations

163 |
164 |
165 |

Go on our other virtual tours

166 | 170 |

Learn more about SUTD

171 | 177 |

Other Student Initiatives

178 |

For other student intiatives, visit our OpenSUTD 180 | landing page. 181 |

182 |
183 |
184 | 185 | 186 |
187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | -------------------------------------------------------------------------------- /js/photo-sphere-viewer.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Photo Sphere Viewer 3.5.1 3 | * Copyright (c) 2014-2015 Jérémy Heleine 4 | * Copyright (c) 2015-2019 Damien "Mistic" Sorel 5 | * Licensed under MIT (https://opensource.org/licenses/MIT) 6 | */ 7 | .psv-container{width:100%;height:100%;margin:0;padding:0;position:relative;background:radial-gradient(#fff 0,#fdfdfd 16%,#fbfbfb 33%,#f8f8f8 49%,#efefef 66%,#dfdfdf 82%,#bfbfbf 100%);overflow:hidden}.psv-canvas-container{position:absolute;top:0;left:0;z-index:0;-webkit-transition:opacity linear .1s;transition:opacity linear .1s}.psv-canvas{display:block}.psv-loader-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:100}.psv-loader{position:relative;text-align:center;color:rgba(61,61,61,.7);width:150px;height:150px;border:10px solid transparent}.psv-loader::before{content:'';display:inline-block;height:100%;vertical-align:middle}.psv-loader,.psv-loader-image,.psv-loader-text{display:inline-block;vertical-align:middle}.psv-loader-canvas{position:absolute;top:0;left:0;width:100%;height:100%}.psv-loader-text{font:14px sans-serif}.psv-navbar{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;z-index:90;bottom:-40px;left:0;width:100%;height:40px;background:rgba(61,61,61,.5);-webkit-transition:bottom ease-in-out .1s;transition:bottom ease-in-out .1s}.psv-navbar--open{bottom:0}.psv-navbar,.psv-navbar *{-webkit-box-sizing:content-box;box-sizing:content-box}.psv-caption{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%;color:rgba(255,255,255,.7);overflow:hidden;text-align:center}.psv-caption-icon{height:20px;width:20px;cursor:pointer}.psv-caption-icon *{fill:rgba(255,255,255,.7)}.psv-caption-content{display:inline-block;padding:10px;font:16px sans-serif;white-space:nowrap}.psv-button{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;padding:10px;position:relative;cursor:pointer;height:20px;width:20px;background:0 0;color:rgba(255,255,255,.7)}.psv-button--active{background:rgba(255,255,255,.2)}.psv-button--disabled{pointer-events:none;opacity:.5}.psv-button .psv-button-svg{width:100%;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.psv-button .psv-button-svg *{fill:rgba(255,255,255,.7)}.psv-button--hover-scale:not(.psv-button--disabled):hover .psv-button-svg{-webkit-transform:scale(1.2);transform:scale(1.2)}.psv-hud{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;z-index:10;width:100%;height:100%}.psv-hud-svg-container{position:absolute;top:0;left:0;width:100%;height:100%;z-index:20}.psv-marker{cursor:pointer;display:none}.psv-marker--normal{position:absolute;top:0;left:0;z-index:30;background-size:contain;background-repeat:no-repeat}.psv-marker--transparent{display:block;opacity:0}.psv-marker--visible{display:block}.psv-panel{position:absolute;z-index:90;right:0;height:100%;width:400px;max-width:calc(100% - 24px);background:rgba(10,10,10,.7);-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:0;-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-duration:.1s;transition-duration:.1s;cursor:default;margin-left:9px}.psv-container--has-navbar .psv-panel{height:calc(100% - 40px)}.psv-panel-close-button{display:none;position:absolute;top:0;left:-24px;width:24px;height:24px;background:rgba(0,0,0,.9)}.psv-panel-close-button::after,.psv-panel-close-button::before{content:'';position:absolute;top:50%;left:4px;width:15px;height:1px;background-color:#fff;-webkit-transition:.2s ease-in-out;transition:.2s ease-in-out;-webkit-transition-property:width,left,-webkit-transform;transition-property:width,left,-webkit-transform;transition-property:width,left,transform;transition-property:width,left,transform,-webkit-transform}.psv-panel-close-button::before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.psv-panel-close-button::after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.psv-panel-close-button:hover::after,.psv-panel-close-button:hover::before{left:0;width:23px}.psv-panel-close-button:hover::before{-webkit-transform:rotate(135deg);transform:rotate(135deg)}.psv-panel-close-button:hover::after{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.psv-panel-resizer{display:none;position:absolute;top:0;left:-9px;width:9px;height:100%;background-color:rgba(0,0,0,.9);cursor:col-resize}.psv-panel-resizer::before{content:'';position:absolute;top:50%;left:1px;margin-top:-14.5px;width:1px;height:1px;-webkit-box-shadow:1px 0 #fff,3px 0 #fff,5px 0 #fff,1px 2px #fff,3px 2px #fff,5px 2px #fff,1px 4px #fff,3px 4px #fff,5px 4px #fff,1px 6px #fff,3px 6px #fff,5px 6px #fff,1px 8px #fff,3px 8px #fff,5px 8px #fff,1px 10px #fff,3px 10px #fff,5px 10px #fff,1px 12px #fff,3px 12px #fff,5px 12px #fff,1px 14px #fff,3px 14px #fff,5px 14px #fff,1px 16px #fff,3px 16px #fff,5px 16px #fff,1px 18px #fff,3px 18px #fff,5px 18px #fff,1px 20px #fff,3px 20px #fff,5px 20px #fff,1px 22px #fff,3px 22px #fff,5px 22px #fff,1px 24px #fff,3px 24px #fff,5px 24px #fff,1px 26px #fff,3px 26px #fff,5px 26px #fff,1px 28px #fff,3px 28px #fff,5px 28px #fff;box-shadow:1px 0 #fff,3px 0 #fff,5px 0 #fff,1px 2px #fff,3px 2px #fff,5px 2px #fff,1px 4px #fff,3px 4px #fff,5px 4px #fff,1px 6px #fff,3px 6px #fff,5px 6px #fff,1px 8px #fff,3px 8px #fff,5px 8px #fff,1px 10px #fff,3px 10px #fff,5px 10px #fff,1px 12px #fff,3px 12px #fff,5px 12px #fff,1px 14px #fff,3px 14px #fff,5px 14px #fff,1px 16px #fff,3px 16px #fff,5px 16px #fff,1px 18px #fff,3px 18px #fff,5px 18px #fff,1px 20px #fff,3px 20px #fff,5px 20px #fff,1px 22px #fff,3px 22px #fff,5px 22px #fff,1px 24px #fff,3px 24px #fff,5px 24px #fff,1px 26px #fff,3px 26px #fff,5px 26px #fff,1px 28px #fff,3px 28px #fff,5px 28px #fff;background:0 0}.psv-panel-content{width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;color:#dcdcdc;font:16px sans-serif;overflow:auto}.psv-panel-content:not(.psv-panel-content--no-margin){padding:1em}.psv-panel-content--no-interaction{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.psv-panel--open{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1;-webkit-transition-duration:.2s;transition-duration:.2s}.psv-panel--open .psv-panel-close-button,.psv-panel--open .psv-panel-resizer{display:block}.psv-tooltip{position:absolute;z-index:50;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:200px;background-color:rgba(61,61,61,.8);border-radius:4px;padding:.5em 1em;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-duration:.1s;transition-duration:.1s}.psv-tooltip-content{color:#fff;font:14px sans-serif;text-shadow:0 1px #000}.psv-tooltip-arrow{position:absolute;height:0;width:0;border:7px solid transparent}.psv-tooltip--bottom-center{-webkit-box-shadow:0 3px 0 rgba(90,90,90,.7);box-shadow:0 3px 0 rgba(90,90,90,.7);-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0);-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.psv-tooltip--bottom-center .psv-tooltip-arrow{border-bottom-color:rgba(61,61,61,.8)}.psv-tooltip--center-left{-webkit-box-shadow:-3px 0 0 rgba(90,90,90,.7);box-shadow:-3px 0 0 rgba(90,90,90,.7);-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0);-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.psv-tooltip--center-left .psv-tooltip-arrow{border-left-color:rgba(61,61,61,.8)}.psv-tooltip--top-center{-webkit-box-shadow:0 -3px 0 rgba(90,90,90,.7);box-shadow:0 -3px 0 rgba(90,90,90,.7);-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0);-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.psv-tooltip--top-center .psv-tooltip-arrow{border-top-color:rgba(61,61,61,.8)}.psv-tooltip--center-right{-webkit-box-shadow:3px 0 0 rgba(90,90,90,.7);box-shadow:3px 0 0 rgba(90,90,90,.7);-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0);-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.psv-tooltip--center-right .psv-tooltip-arrow{border-right-color:rgba(61,61,61,.8)}.psv-tooltip--bottom-left{-webkit-box-shadow:-3px 3px 0 rgba(90,90,90,.7);box-shadow:-3px 3px 0 rgba(90,90,90,.7);-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0);-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.psv-tooltip--bottom-left .psv-tooltip-arrow{border-bottom-color:rgba(61,61,61,.8)}.psv-tooltip--bottom-right{-webkit-box-shadow:3px 3px 0 rgba(90,90,90,.7);box-shadow:3px 3px 0 rgba(90,90,90,.7);-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0);-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.psv-tooltip--bottom-right .psv-tooltip-arrow{border-bottom-color:rgba(61,61,61,.8)}.psv-tooltip--top-left{-webkit-box-shadow:-3px -3px 0 rgba(90,90,90,.7);box-shadow:-3px -3px 0 rgba(90,90,90,.7);-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0);-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.psv-tooltip--top-left .psv-tooltip-arrow{border-top-color:rgba(61,61,61,.8)}.psv-tooltip--top-right{-webkit-box-shadow:3px -3px 0 rgba(90,90,90,.7);box-shadow:3px -3px 0 rgba(90,90,90,.7);-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0);-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.psv-tooltip--top-right .psv-tooltip-arrow{border-top-color:rgba(61,61,61,.8)}.psv-tooltip--visible{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1;-webkit-transition-duration:.1s;transition-duration:.1s}.psv-notification{position:absolute;z-index:100;bottom:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;padding:0 2em;opacity:0;-webkit-transition-property:opacity,bottom;transition-property:opacity,bottom;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-duration:.2s;transition-duration:.2s}.psv-notification-content{max-width:50em;background-color:rgba(61,61,61,.8);border-radius:4px;padding:.5em 1em;font:14px sans-serif;color:#fff}.psv-notification--visible{opacity:100;bottom:80px}.psv-overlay{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:110;top:0;left:0;bottom:0;right:0;background:radial-gradient(#fff 0,#fdfdfd 16%,#fbfbfb 33%,#f8f8f8 49%,#efefef 66%,#dfdfdf 82%,#bfbfbf 100%);opacity:.8}.psv-overlay-image{margin-bottom:4vh}.psv-overlay-image svg{width:50vw}@media screen and (orientation:landscape){.psv-overlay-image svg{width:25vw}}.psv-overlay-text{font:30px sans-serif;text-align:center}.psv-overlay-subtext{font:20px sans-serif;opacity:.8;text-align:center}.psv-markers-list-title{font:24px sans-serif;margin:1em 0;text-align:center;text-shadow:2px 1px #000}.psv-markers-list{list-style:none;margin:0;padding:0;overflow:hidden}.psv-markers-list-item{clear:both;min-height:20px;padding:.5em 1em;cursor:pointer;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:-webkit-transform .3s ease-in-out;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out,-webkit-transform .3s ease-in-out}.psv-markers-list-item::before{content:'';position:absolute;top:0;left:0;height:100%;width:10px;margin-left:-10px}.psv-markers-list-item:nth-child(odd),.psv-markers-list-item:nth-child(odd)::before{background:rgba(255,255,255,.1)}.psv-markers-list-item:nth-child(even),.psv-markers-list-item:nth-child(even)::before{background:0 0}.psv-markers-list-item:hover{-webkit-transform:translateX(10px);transform:translateX(10px);-webkit-transition:-webkit-transform .1s ease-in-out;transition:-webkit-transform .1s ease-in-out;transition:transform .1s ease-in-out;transition:transform .1s ease-in-out,-webkit-transform .1s ease-in-out}.psv-markers-list-image{float:left;width:20px}.psv-markers-list-name{margin:0;padding:0}.psv-markers-list-image+.psv-markers-list-name{padding-left:calc(20px + .5em)}.psv-autorotate-button{width:25px;height:25px;padding:7.5px}.psv-zoom-button{cursor:default;width:128px}.psv-zoom-button-minus,.psv-zoom-button-plus{float:left;position:relative;cursor:pointer;width:16px;height:16px}.psv-zoom-button-minus .psv-button-svg,.psv-zoom-button-plus .psv-button-svg{position:relative;top:20%}.psv-zoom-button-range{float:left;padding:9.5px 8px}.psv-zoom-button-line{position:relative;cursor:pointer;width:80px;height:1px;background:rgba(255,255,255,.7);-webkit-transition:all .3s ease;transition:all .3s ease}.psv-zoom-button-handle{position:absolute;border-radius:50%;top:-3px;width:7px;height:7px;background:rgba(255,255,255,.7);-webkit-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform .3s ease;transition:-webkit-transform .3s ease;transition:transform .3s ease;transition:transform .3s ease,-webkit-transform .3s ease}.psv-zoom-button:not(.psv-button--disabled):hover .psv-zoom-button-line{-webkit-box-shadow:0 0 2px rgba(255,255,255,.7);box-shadow:0 0 2px rgba(255,255,255,.7)}.psv-zoom-button:not(.psv-button--disabled):hover .psv-zoom-button-handle{-webkit-transform:scale(1.3);transform:scale(1.3)}@media (max-width:600px){.psv-zoom-button{width:auto;padding:0}.psv-zoom-button-range{display:none}.psv-zoom-button-minus,.psv-zoom-button-plus{width:20px;height:20px;padding:10px}.psv-zoom-button-minus .psv-button-svg,.psv-zoom-button-plus .psv-button-svg{top:0}}@media (max-width:600px){.psv-is-touch .psv-zoom-button{display:none}} -------------------------------------------------------------------------------- /assets/js/util.js: -------------------------------------------------------------------------------- 1 | (function($) { 2 | 3 | /** 4 | * Generate an indented list of links from a nav. Meant for use with panel(). 5 | * @return {jQuery} jQuery object. 6 | */ 7 | $.fn.navList = function() { 8 | 9 | var $this = $(this); 10 | $a = $this.find('a'), 11 | b = []; 12 | 13 | $a.each(function() { 14 | 15 | var $this = $(this), 16 | indent = Math.max(0, $this.parents('li').length - 1), 17 | href = $this.attr('href'), 18 | target = $this.attr('target'); 19 | 20 | b.push( 21 | '' + 26 | '' + 27 | $this.text() + 28 | '' 29 | ); 30 | 31 | }); 32 | 33 | return b.join(''); 34 | 35 | }; 36 | 37 | /** 38 | * Panel-ify an element. 39 | * @param {object} userConfig User config. 40 | * @return {jQuery} jQuery object. 41 | */ 42 | $.fn.panel = function(userConfig) { 43 | 44 | // No elements? 45 | if (this.length == 0) 46 | return $this; 47 | 48 | // Multiple elements? 49 | if (this.length > 1) { 50 | 51 | for (var i=0; i < this.length; i++) 52 | $(this[i]).panel(userConfig); 53 | 54 | return $this; 55 | 56 | } 57 | 58 | // Vars. 59 | var $this = $(this), 60 | $body = $('body'), 61 | $window = $(window), 62 | id = $this.attr('id'), 63 | config; 64 | 65 | // Config. 66 | config = $.extend({ 67 | 68 | // Delay. 69 | delay: 0, 70 | 71 | // Hide panel on link click. 72 | hideOnClick: false, 73 | 74 | // Hide panel on escape keypress. 75 | hideOnEscape: false, 76 | 77 | // Hide panel on swipe. 78 | hideOnSwipe: false, 79 | 80 | // Reset scroll position on hide. 81 | resetScroll: false, 82 | 83 | // Reset forms on hide. 84 | resetForms: false, 85 | 86 | // Side of viewport the panel will appear. 87 | side: null, 88 | 89 | // Target element for "class". 90 | target: $this, 91 | 92 | // Class to toggle. 93 | visibleClass: 'visible' 94 | 95 | }, userConfig); 96 | 97 | // Expand "target" if it's not a jQuery object already. 98 | if (typeof config.target != 'jQuery') 99 | config.target = $(config.target); 100 | 101 | // Panel. 102 | 103 | // Methods. 104 | $this._hide = function(event) { 105 | 106 | // Already hidden? Bail. 107 | if (!config.target.hasClass(config.visibleClass)) 108 | return; 109 | 110 | // If an event was provided, cancel it. 111 | if (event) { 112 | 113 | event.preventDefault(); 114 | event.stopPropagation(); 115 | 116 | } 117 | 118 | // Hide. 119 | config.target.removeClass(config.visibleClass); 120 | 121 | // Post-hide stuff. 122 | window.setTimeout(function() { 123 | 124 | // Reset scroll position. 125 | if (config.resetScroll) 126 | $this.scrollTop(0); 127 | 128 | // Reset forms. 129 | if (config.resetForms) 130 | $this.find('form').each(function() { 131 | this.reset(); 132 | }); 133 | 134 | }, config.delay); 135 | 136 | }; 137 | 138 | // Vendor fixes. 139 | $this 140 | .css('-ms-overflow-style', '-ms-autohiding-scrollbar') 141 | .css('-webkit-overflow-scrolling', 'touch'); 142 | 143 | // Hide on click. 144 | if (config.hideOnClick) { 145 | 146 | $this.find('a') 147 | .css('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); 148 | 149 | $this 150 | .on('click', 'a', function(event) { 151 | 152 | var $a = $(this), 153 | href = $a.attr('href'), 154 | target = $a.attr('target'); 155 | 156 | if (!href || href == '#' || href == '' || href == '#' + id) 157 | return; 158 | 159 | // Cancel original event. 160 | event.preventDefault(); 161 | event.stopPropagation(); 162 | 163 | // Hide panel. 164 | $this._hide(); 165 | 166 | // Redirect to href. 167 | window.setTimeout(function() { 168 | 169 | if (target == '_blank') 170 | window.open(href); 171 | else 172 | window.location.href = href; 173 | 174 | }, config.delay + 10); 175 | 176 | }); 177 | 178 | } 179 | 180 | // Event: Touch stuff. 181 | $this.on('touchstart', function(event) { 182 | 183 | $this.touchPosX = event.originalEvent.touches[0].pageX; 184 | $this.touchPosY = event.originalEvent.touches[0].pageY; 185 | 186 | }) 187 | 188 | $this.on('touchmove', function(event) { 189 | 190 | if ($this.touchPosX === null 191 | || $this.touchPosY === null) 192 | return; 193 | 194 | var diffX = $this.touchPosX - event.originalEvent.touches[0].pageX, 195 | diffY = $this.touchPosY - event.originalEvent.touches[0].pageY, 196 | th = $this.outerHeight(), 197 | ts = ($this.get(0).scrollHeight - $this.scrollTop()); 198 | 199 | // Hide on swipe? 200 | if (config.hideOnSwipe) { 201 | 202 | var result = false, 203 | boundary = 20, 204 | delta = 50; 205 | 206 | switch (config.side) { 207 | 208 | case 'left': 209 | result = (diffY < boundary && diffY > (-1 * boundary)) && (diffX > delta); 210 | break; 211 | 212 | case 'right': 213 | result = (diffY < boundary && diffY > (-1 * boundary)) && (diffX < (-1 * delta)); 214 | break; 215 | 216 | case 'top': 217 | result = (diffX < boundary && diffX > (-1 * boundary)) && (diffY > delta); 218 | break; 219 | 220 | case 'bottom': 221 | result = (diffX < boundary && diffX > (-1 * boundary)) && (diffY < (-1 * delta)); 222 | break; 223 | 224 | default: 225 | break; 226 | 227 | } 228 | 229 | if (result) { 230 | 231 | $this.touchPosX = null; 232 | $this.touchPosY = null; 233 | $this._hide(); 234 | 235 | return false; 236 | 237 | } 238 | 239 | } 240 | 241 | // Prevent vertical scrolling past the top or bottom. 242 | if (($this.scrollTop() < 0 && diffY < 0) 243 | || (ts > (th - 2) && ts < (th + 2) && diffY > 0)) { 244 | 245 | event.preventDefault(); 246 | event.stopPropagation(); 247 | 248 | } 249 | 250 | }); 251 | 252 | // Event: Prevent certain events inside the panel from bubbling. 253 | $this.on('click touchend touchstart touchmove', function(event) { 254 | event.stopPropagation(); 255 | }); 256 | 257 | // Event: Hide panel if a child anchor tag pointing to its ID is clicked. 258 | $this.on('click', 'a[href="#' + id + '"]', function(event) { 259 | 260 | event.preventDefault(); 261 | event.stopPropagation(); 262 | 263 | config.target.removeClass(config.visibleClass); 264 | 265 | }); 266 | 267 | // Body. 268 | 269 | // Event: Hide panel on body click/tap. 270 | $body.on('click touchend', function(event) { 271 | $this._hide(event); 272 | }); 273 | 274 | // Event: Toggle. 275 | $body.on('click', 'a[href="#' + id + '"]', function(event) { 276 | 277 | event.preventDefault(); 278 | event.stopPropagation(); 279 | 280 | config.target.toggleClass(config.visibleClass); 281 | 282 | }); 283 | 284 | // Window. 285 | 286 | // Event: Hide on ESC. 287 | if (config.hideOnEscape) 288 | $window.on('keydown', function(event) { 289 | 290 | if (event.keyCode == 27) 291 | $this._hide(event); 292 | 293 | }); 294 | 295 | return $this; 296 | 297 | }; 298 | 299 | /** 300 | * Apply "placeholder" attribute polyfill to one or more forms. 301 | * @return {jQuery} jQuery object. 302 | */ 303 | $.fn.placeholder = function() { 304 | 305 | // Browser natively supports placeholders? Bail. 306 | if (typeof (document.createElement('input')).placeholder != 'undefined') 307 | return $(this); 308 | 309 | // No elements? 310 | if (this.length == 0) 311 | return $this; 312 | 313 | // Multiple elements? 314 | if (this.length > 1) { 315 | 316 | for (var i=0; i < this.length; i++) 317 | $(this[i]).placeholder(); 318 | 319 | return $this; 320 | 321 | } 322 | 323 | // Vars. 324 | var $this = $(this); 325 | 326 | // Text, TextArea. 327 | $this.find('input[type=text],textarea') 328 | .each(function() { 329 | 330 | var i = $(this); 331 | 332 | if (i.val() == '' 333 | || i.val() == i.attr('placeholder')) 334 | i 335 | .addClass('polyfill-placeholder') 336 | .val(i.attr('placeholder')); 337 | 338 | }) 339 | .on('blur', function() { 340 | 341 | var i = $(this); 342 | 343 | if (i.attr('name').match(/-polyfill-field$/)) 344 | return; 345 | 346 | if (i.val() == '') 347 | i 348 | .addClass('polyfill-placeholder') 349 | .val(i.attr('placeholder')); 350 | 351 | }) 352 | .on('focus', function() { 353 | 354 | var i = $(this); 355 | 356 | if (i.attr('name').match(/-polyfill-field$/)) 357 | return; 358 | 359 | if (i.val() == i.attr('placeholder')) 360 | i 361 | .removeClass('polyfill-placeholder') 362 | .val(''); 363 | 364 | }); 365 | 366 | // Password. 367 | $this.find('input[type=password]') 368 | .each(function() { 369 | 370 | var i = $(this); 371 | var x = $( 372 | $('
') 373 | .append(i.clone()) 374 | .remove() 375 | .html() 376 | .replace(/type="password"/i, 'type="text"') 377 | .replace(/type=password/i, 'type=text') 378 | ); 379 | 380 | if (i.attr('id') != '') 381 | x.attr('id', i.attr('id') + '-polyfill-field'); 382 | 383 | if (i.attr('name') != '') 384 | x.attr('name', i.attr('name') + '-polyfill-field'); 385 | 386 | x.addClass('polyfill-placeholder') 387 | .val(x.attr('placeholder')).insertAfter(i); 388 | 389 | if (i.val() == '') 390 | i.hide(); 391 | else 392 | x.hide(); 393 | 394 | i 395 | .on('blur', function(event) { 396 | 397 | event.preventDefault(); 398 | 399 | var x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]'); 400 | 401 | if (i.val() == '') { 402 | 403 | i.hide(); 404 | x.show(); 405 | 406 | } 407 | 408 | }); 409 | 410 | x 411 | .on('focus', function(event) { 412 | 413 | event.preventDefault(); 414 | 415 | var i = x.parent().find('input[name=' + x.attr('name').replace('-polyfill-field', '') + ']'); 416 | 417 | x.hide(); 418 | 419 | i 420 | .show() 421 | .focus(); 422 | 423 | }) 424 | .on('keypress', function(event) { 425 | 426 | event.preventDefault(); 427 | x.val(''); 428 | 429 | }); 430 | 431 | }); 432 | 433 | // Events. 434 | $this 435 | .on('submit', function() { 436 | 437 | $this.find('input[type=text],input[type=password],textarea') 438 | .each(function(event) { 439 | 440 | var i = $(this); 441 | 442 | if (i.attr('name').match(/-polyfill-field$/)) 443 | i.attr('name', ''); 444 | 445 | if (i.val() == i.attr('placeholder')) { 446 | 447 | i.removeClass('polyfill-placeholder'); 448 | i.val(''); 449 | 450 | } 451 | 452 | }); 453 | 454 | }) 455 | .on('reset', function(event) { 456 | 457 | event.preventDefault(); 458 | 459 | $this.find('select') 460 | .val($('option:first').val()); 461 | 462 | $this.find('input,textarea') 463 | .each(function() { 464 | 465 | var i = $(this), 466 | x; 467 | 468 | i.removeClass('polyfill-placeholder'); 469 | 470 | switch (this.type) { 471 | 472 | case 'submit': 473 | case 'reset': 474 | break; 475 | 476 | case 'password': 477 | i.val(i.attr('defaultValue')); 478 | 479 | x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]'); 480 | 481 | if (i.val() == '') { 482 | i.hide(); 483 | x.show(); 484 | } 485 | else { 486 | i.show(); 487 | x.hide(); 488 | } 489 | 490 | break; 491 | 492 | case 'checkbox': 493 | case 'radio': 494 | i.attr('checked', i.attr('defaultValue')); 495 | break; 496 | 497 | case 'text': 498 | case 'textarea': 499 | i.val(i.attr('defaultValue')); 500 | 501 | if (i.val() == '') { 502 | i.addClass('polyfill-placeholder'); 503 | i.val(i.attr('placeholder')); 504 | } 505 | 506 | break; 507 | 508 | default: 509 | i.val(i.attr('defaultValue')); 510 | break; 511 | 512 | } 513 | }); 514 | 515 | }); 516 | 517 | return $this; 518 | 519 | }; 520 | 521 | /** 522 | * Moves elements to/from the first positions of their respective parents. 523 | * @param {jQuery} $elements Elements (or selector) to move. 524 | * @param {bool} condition If true, moves elements to the top. Otherwise, moves elements back to their original locations. 525 | */ 526 | $.prioritize = function($elements, condition) { 527 | 528 | var key = '__prioritize'; 529 | 530 | // Expand $elements if it's not already a jQuery object. 531 | if (typeof $elements != 'jQuery') 532 | $elements = $($elements); 533 | 534 | // Step through elements. 535 | $elements.each(function() { 536 | 537 | var $e = $(this), $p, 538 | $parent = $e.parent(); 539 | 540 | // No parent? Bail. 541 | if ($parent.length == 0) 542 | return; 543 | 544 | // Not moved? Move it. 545 | if (!$e.data(key)) { 546 | 547 | // Condition is false? Bail. 548 | if (!condition) 549 | return; 550 | 551 | // Get placeholder (which will serve as our point of reference for when this element needs to move back). 552 | $p = $e.prev(); 553 | 554 | // Couldn't find anything? Means this element's already at the top, so bail. 555 | if ($p.length == 0) 556 | return; 557 | 558 | // Move element to top of parent. 559 | $e.prependTo($parent); 560 | 561 | // Mark element as moved. 562 | $e.data(key, $p); 563 | 564 | } 565 | 566 | // Moved already? 567 | else { 568 | 569 | // Condition is true? Bail. 570 | if (condition) 571 | return; 572 | 573 | $p = $e.data(key); 574 | 575 | // Move element back to its original location (using our placeholder). 576 | $e.insertAfter($p); 577 | 578 | // Unmark element as moved. 579 | $e.removeData(key); 580 | 581 | } 582 | 583 | }); 584 | 585 | }; 586 | 587 | })(jQuery); -------------------------------------------------------------------------------- /LICENSE.html5up.txt: -------------------------------------------------------------------------------- 1 | Creative Commons Attribution 3.0 Unported 2 | http://creativecommons.org/licenses/by/3.0/ 3 | 4 | License 5 | 6 | THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. 7 | 8 | BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. 9 | 10 | 1. Definitions 11 | 12 | 1. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. 13 | 2. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License. 14 | 3. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. 15 | 4. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. 16 | 5. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. 17 | 6. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. 18 | 7. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. 19 | 8. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. 20 | 9. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. 21 | 22 | 2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. 23 | 24 | 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: 25 | 26 | 1. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; 27 | 2. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; 28 | 3. to Distribute and Publicly Perform the Work including as incorporated in Collections; and, 29 | 4. to Distribute and Publicly Perform Adaptations. 30 | 5. 31 | 32 | For the avoidance of doubt: 33 | 1. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; 34 | 2. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and, 35 | 3. Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License. 36 | 37 | The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved. 38 | 39 | 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: 40 | 41 | 1. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(b), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(b), as requested. 42 | 2. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4 (b) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. 43 | 3. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. 44 | 45 | 5. Representations, Warranties and Disclaimer 46 | 47 | UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. 48 | 49 | 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 50 | 51 | 7. Termination 52 | 53 | 1. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. 54 | 2. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. 55 | 56 | 8. Miscellaneous 57 | 58 | 1. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. 59 | 2. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. 60 | 3. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. 61 | 4. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. 62 | 5. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. 63 | 6. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. 64 | -------------------------------------------------------------------------------- /js/photo-sphere-viewer.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Photo Sphere Viewer 3.5.1 3 | * Copyright (c) 2014-2015 Jérémy Heleine 4 | * Copyright (c) 2015-2019 Damien "Mistic" Sorel 5 | * Licensed under MIT (https://opensource.org/licenses/MIT) 6 | */ 7 | .psv-container { 8 | width: 100%; 9 | height: 100%; 10 | margin: 0; 11 | padding: 0; 12 | position: relative; 13 | background: radial-gradient(#fff 0%, #fdfdfd 16%, #fbfbfb 33%, #f8f8f8 49%, #efefef 66%, #dfdfdf 82%, #bfbfbf 100%); 14 | overflow: hidden; } 15 | 16 | .psv-canvas-container { 17 | position: absolute; 18 | top: 0; 19 | left: 0; 20 | z-index: 0; 21 | -webkit-transition: opacity linear 100ms; 22 | transition: opacity linear 100ms; } 23 | 24 | .psv-canvas { 25 | display: block; } 26 | 27 | .psv-loader-container { 28 | display: -webkit-box; 29 | display: -ms-flexbox; 30 | display: flex; 31 | -webkit-box-align: center; 32 | -ms-flex-align: center; 33 | align-items: center; 34 | -webkit-box-pack: center; 35 | -ms-flex-pack: center; 36 | justify-content: center; 37 | position: absolute; 38 | top: 0; 39 | left: 0; 40 | width: 100%; 41 | height: 100%; 42 | z-index: 100; } 43 | 44 | .psv-loader { 45 | position: relative; 46 | text-align: center; 47 | color: rgba(61, 61, 61, 0.7); 48 | width: 150px; 49 | height: 150px; 50 | border: 10px solid transparent; } 51 | .psv-loader::before { 52 | content: ''; 53 | display: inline-block; 54 | height: 100%; 55 | vertical-align: middle; } 56 | .psv-loader, .psv-loader-image, .psv-loader-text { 57 | display: inline-block; 58 | vertical-align: middle; } 59 | .psv-loader-canvas { 60 | position: absolute; 61 | top: 0; 62 | left: 0; 63 | width: 100%; 64 | height: 100%; } 65 | .psv-loader-text { 66 | font: 14px sans-serif; } 67 | 68 | .psv-navbar { 69 | display: -webkit-box; 70 | display: -ms-flexbox; 71 | display: flex; 72 | position: absolute; 73 | z-index: 90; 74 | bottom: -40px; 75 | left: 0; 76 | width: 100%; 77 | height: 40px; 78 | background: rgba(61, 61, 61, 0.5); 79 | -webkit-transition: bottom ease-in-out .1s; 80 | transition: bottom ease-in-out .1s; } 81 | .psv-navbar--open { 82 | bottom: 0; } 83 | .psv-navbar, 84 | .psv-navbar * { 85 | -webkit-box-sizing: content-box; 86 | box-sizing: content-box; } 87 | 88 | .psv-caption { 89 | -webkit-box-flex: 1; 90 | -ms-flex: 1 1 100%; 91 | flex: 1 1 100%; 92 | color: rgba(255, 255, 255, 0.7); 93 | overflow: hidden; 94 | text-align: center; } 95 | .psv-caption-icon { 96 | height: 20px; 97 | width: 20px; 98 | cursor: pointer; } 99 | .psv-caption-icon * { 100 | fill: rgba(255, 255, 255, 0.7); } 101 | .psv-caption-content { 102 | display: inline-block; 103 | padding: 10px; 104 | font: 16px sans-serif; 105 | white-space: nowrap; } 106 | 107 | .psv-button { 108 | -webkit-box-flex: 0; 109 | -ms-flex: 0 0 auto; 110 | flex: 0 0 auto; 111 | padding: 10px; 112 | position: relative; 113 | cursor: pointer; 114 | height: 20px; 115 | width: 20px; 116 | background: transparent; 117 | color: rgba(255, 255, 255, 0.7); } 118 | .psv-button--active { 119 | background: rgba(255, 255, 255, 0.2); } 120 | .psv-button--disabled { 121 | pointer-events: none; 122 | opacity: 0.5; } 123 | .psv-button .psv-button-svg { 124 | width: 100%; 125 | -webkit-transform: scale(1); 126 | transform: scale(1); 127 | -webkit-transition: -webkit-transform 200ms ease; 128 | transition: -webkit-transform 200ms ease; 129 | transition: transform 200ms ease; 130 | transition: transform 200ms ease, -webkit-transform 200ms ease; } 131 | .psv-button .psv-button-svg * { 132 | fill: rgba(255, 255, 255, 0.7); } 133 | .psv-button--hover-scale:not(.psv-button--disabled):hover .psv-button-svg { 134 | -webkit-transform: scale(1.2); 135 | transform: scale(1.2); } 136 | 137 | .psv-hud { 138 | -webkit-user-select: none; 139 | -moz-user-select: none; 140 | -ms-user-select: none; 141 | user-select: none; 142 | position: absolute; 143 | z-index: 10; 144 | width: 100%; 145 | height: 100%; } 146 | 147 | .psv-hud-svg-container { 148 | position: absolute; 149 | top: 0; 150 | left: 0; 151 | width: 100%; 152 | height: 100%; 153 | z-index: 20; } 154 | 155 | .psv-marker { 156 | cursor: pointer; 157 | display: none; } 158 | .psv-marker--normal { 159 | position: absolute; 160 | top: 0; 161 | left: 0; 162 | z-index: 30; 163 | background-size: contain; 164 | background-repeat: no-repeat; } 165 | .psv-marker--transparent { 166 | display: block; 167 | opacity: 0; } 168 | .psv-marker--visible { 169 | display: block; } 170 | 171 | .psv-panel { 172 | position: absolute; 173 | z-index: 90; 174 | right: 0; 175 | height: 100%; 176 | width: 400px; 177 | max-width: calc(100% - 24px); 178 | background: rgba(10, 10, 10, 0.7); 179 | -webkit-transform: translate3d(100%, 0, 0); 180 | transform: translate3d(100%, 0, 0); 181 | opacity: 0; 182 | -webkit-transition-property: opacity, -webkit-transform; 183 | transition-property: opacity, -webkit-transform; 184 | transition-property: opacity, transform; 185 | transition-property: opacity, transform, -webkit-transform; 186 | -webkit-transition-timing-function: ease-in-out; 187 | transition-timing-function: ease-in-out; 188 | -webkit-transition-duration: .1s; 189 | transition-duration: .1s; 190 | cursor: default; 191 | margin-left: 9px; } 192 | .psv-container--has-navbar .psv-panel { 193 | height: calc(100% - 40px); } 194 | .psv-panel-close-button { 195 | display: none; 196 | position: absolute; 197 | top: 0; 198 | left: -24px; 199 | width: 24px; 200 | height: 24px; 201 | background: rgba(0, 0, 0, 0.9); } 202 | .psv-panel-close-button::before, .psv-panel-close-button::after { 203 | content: ''; 204 | position: absolute; 205 | top: 50%; 206 | left: 4px; 207 | width: 15px; 208 | height: 1px; 209 | background-color: #fff; 210 | -webkit-transition: .2s ease-in-out; 211 | transition: .2s ease-in-out; 212 | -webkit-transition-property: width, left, -webkit-transform; 213 | transition-property: width, left, -webkit-transform; 214 | transition-property: width, left, transform; 215 | transition-property: width, left, transform, -webkit-transform; } 216 | .psv-panel-close-button::before { 217 | -webkit-transform: rotate(45deg); 218 | transform: rotate(45deg); } 219 | .psv-panel-close-button::after { 220 | -webkit-transform: rotate(-45deg); 221 | transform: rotate(-45deg); } 222 | .psv-panel-close-button:hover::before, .psv-panel-close-button:hover::after { 223 | left: 0; 224 | width: 23px; } 225 | .psv-panel-close-button:hover::before { 226 | -webkit-transform: rotate(135deg); 227 | transform: rotate(135deg); } 228 | .psv-panel-close-button:hover::after { 229 | -webkit-transform: rotate(45deg); 230 | transform: rotate(45deg); } 231 | .psv-panel-resizer { 232 | display: none; 233 | position: absolute; 234 | top: 0; 235 | left: -9px; 236 | width: 9px; 237 | height: 100%; 238 | background-color: rgba(0, 0, 0, 0.9); 239 | cursor: col-resize; } 240 | .psv-panel-resizer::before { 241 | content: ''; 242 | position: absolute; 243 | top: 50%; 244 | left: 1px; 245 | margin-top: -14.5px; 246 | width: 1px; 247 | height: 1px; 248 | -webkit-box-shadow: 1px 0 #fff, 3px 0px #fff, 5px 0px #fff, 1px 2px #fff, 3px 2px #fff, 5px 2px #fff, 1px 4px #fff, 3px 4px #fff, 5px 4px #fff, 1px 6px #fff, 3px 6px #fff, 5px 6px #fff, 1px 8px #fff, 3px 8px #fff, 5px 8px #fff, 1px 10px #fff, 3px 10px #fff, 5px 10px #fff, 1px 12px #fff, 3px 12px #fff, 5px 12px #fff, 1px 14px #fff, 3px 14px #fff, 5px 14px #fff, 1px 16px #fff, 3px 16px #fff, 5px 16px #fff, 1px 18px #fff, 3px 18px #fff, 5px 18px #fff, 1px 20px #fff, 3px 20px #fff, 5px 20px #fff, 1px 22px #fff, 3px 22px #fff, 5px 22px #fff, 1px 24px #fff, 3px 24px #fff, 5px 24px #fff, 1px 26px #fff, 3px 26px #fff, 5px 26px #fff, 1px 28px #fff, 3px 28px #fff, 5px 28px #fff; 249 | box-shadow: 1px 0 #fff, 3px 0px #fff, 5px 0px #fff, 1px 2px #fff, 3px 2px #fff, 5px 2px #fff, 1px 4px #fff, 3px 4px #fff, 5px 4px #fff, 1px 6px #fff, 3px 6px #fff, 5px 6px #fff, 1px 8px #fff, 3px 8px #fff, 5px 8px #fff, 1px 10px #fff, 3px 10px #fff, 5px 10px #fff, 1px 12px #fff, 3px 12px #fff, 5px 12px #fff, 1px 14px #fff, 3px 14px #fff, 5px 14px #fff, 1px 16px #fff, 3px 16px #fff, 5px 16px #fff, 1px 18px #fff, 3px 18px #fff, 5px 18px #fff, 1px 20px #fff, 3px 20px #fff, 5px 20px #fff, 1px 22px #fff, 3px 22px #fff, 5px 22px #fff, 1px 24px #fff, 3px 24px #fff, 5px 24px #fff, 1px 26px #fff, 3px 26px #fff, 5px 26px #fff, 1px 28px #fff, 3px 28px #fff, 5px 28px #fff; 250 | background: transparent; } 251 | .psv-panel-content { 252 | width: 100%; 253 | height: 100%; 254 | -webkit-box-sizing: border-box; 255 | box-sizing: border-box; 256 | color: gainsboro; 257 | font: 16px sans-serif; 258 | overflow: auto; } 259 | .psv-panel-content:not(.psv-panel-content--no-margin) { 260 | padding: 1em; } 261 | .psv-panel-content--no-interaction { 262 | -webkit-user-select: none; 263 | -moz-user-select: none; 264 | -ms-user-select: none; 265 | user-select: none; 266 | pointer-events: none; } 267 | .psv-panel--open { 268 | -webkit-transform: translate3d(0, 0, 0); 269 | transform: translate3d(0, 0, 0); 270 | opacity: 1; 271 | -webkit-transition-duration: .2s; 272 | transition-duration: .2s; } 273 | .psv-panel--open .psv-panel-close-button, 274 | .psv-panel--open .psv-panel-resizer { 275 | display: block; } 276 | 277 | .psv-tooltip { 278 | position: absolute; 279 | z-index: 50; 280 | -webkit-box-sizing: border-box; 281 | box-sizing: border-box; 282 | max-width: 200px; 283 | background-color: rgba(61, 61, 61, 0.8); 284 | border-radius: 4px; 285 | padding: 0.5em 1em; 286 | opacity: 0; 287 | -webkit-transition-property: opacity; 288 | transition-property: opacity; 289 | -webkit-transition-timing-function: ease-in-out; 290 | transition-timing-function: ease-in-out; 291 | -webkit-transition-duration: 100ms; 292 | transition-duration: 100ms; } 293 | .psv-tooltip-content { 294 | color: white; 295 | font: 14px sans-serif; 296 | text-shadow: 0 1px #000; } 297 | .psv-tooltip-arrow { 298 | position: absolute; 299 | height: 0; 300 | width: 0; 301 | border: 7px solid transparent; } 302 | .psv-tooltip--bottom-center { 303 | -webkit-box-shadow: 0 3px 0 rgba(90, 90, 90, 0.7); 304 | box-shadow: 0 3px 0 rgba(90, 90, 90, 0.7); 305 | -webkit-transform: translate3d(0, -5px, 0); 306 | transform: translate3d(0, -5px, 0); 307 | -webkit-transition-property: opacity, -webkit-transform; 308 | transition-property: opacity, -webkit-transform; 309 | transition-property: opacity, transform; 310 | transition-property: opacity, transform, -webkit-transform; } 311 | .psv-tooltip--bottom-center .psv-tooltip-arrow { 312 | border-bottom-color: rgba(61, 61, 61, 0.8); } 313 | .psv-tooltip--center-left { 314 | -webkit-box-shadow: -3px 0 0 rgba(90, 90, 90, 0.7); 315 | box-shadow: -3px 0 0 rgba(90, 90, 90, 0.7); 316 | -webkit-transform: translate3d(5px, 0, 0); 317 | transform: translate3d(5px, 0, 0); 318 | -webkit-transition-property: opacity, -webkit-transform; 319 | transition-property: opacity, -webkit-transform; 320 | transition-property: opacity, transform; 321 | transition-property: opacity, transform, -webkit-transform; } 322 | .psv-tooltip--center-left .psv-tooltip-arrow { 323 | border-left-color: rgba(61, 61, 61, 0.8); } 324 | .psv-tooltip--top-center { 325 | -webkit-box-shadow: 0 -3px 0 rgba(90, 90, 90, 0.7); 326 | box-shadow: 0 -3px 0 rgba(90, 90, 90, 0.7); 327 | -webkit-transform: translate3d(0, 5px, 0); 328 | transform: translate3d(0, 5px, 0); 329 | -webkit-transition-property: opacity, -webkit-transform; 330 | transition-property: opacity, -webkit-transform; 331 | transition-property: opacity, transform; 332 | transition-property: opacity, transform, -webkit-transform; } 333 | .psv-tooltip--top-center .psv-tooltip-arrow { 334 | border-top-color: rgba(61, 61, 61, 0.8); } 335 | .psv-tooltip--center-right { 336 | -webkit-box-shadow: 3px 0 0 rgba(90, 90, 90, 0.7); 337 | box-shadow: 3px 0 0 rgba(90, 90, 90, 0.7); 338 | -webkit-transform: translate3d(-5px, 0, 0); 339 | transform: translate3d(-5px, 0, 0); 340 | -webkit-transition-property: opacity, -webkit-transform; 341 | transition-property: opacity, -webkit-transform; 342 | transition-property: opacity, transform; 343 | transition-property: opacity, transform, -webkit-transform; } 344 | .psv-tooltip--center-right .psv-tooltip-arrow { 345 | border-right-color: rgba(61, 61, 61, 0.8); } 346 | .psv-tooltip--bottom-left { 347 | -webkit-box-shadow: -3px 3px 0 rgba(90, 90, 90, 0.7); 348 | box-shadow: -3px 3px 0 rgba(90, 90, 90, 0.7); 349 | -webkit-transform: translate3d(0, -5px, 0); 350 | transform: translate3d(0, -5px, 0); 351 | -webkit-transition-property: opacity, -webkit-transform; 352 | transition-property: opacity, -webkit-transform; 353 | transition-property: opacity, transform; 354 | transition-property: opacity, transform, -webkit-transform; } 355 | .psv-tooltip--bottom-left .psv-tooltip-arrow { 356 | border-bottom-color: rgba(61, 61, 61, 0.8); } 357 | .psv-tooltip--bottom-right { 358 | -webkit-box-shadow: 3px 3px 0 rgba(90, 90, 90, 0.7); 359 | box-shadow: 3px 3px 0 rgba(90, 90, 90, 0.7); 360 | -webkit-transform: translate3d(0, -5px, 0); 361 | transform: translate3d(0, -5px, 0); 362 | -webkit-transition-property: opacity, -webkit-transform; 363 | transition-property: opacity, -webkit-transform; 364 | transition-property: opacity, transform; 365 | transition-property: opacity, transform, -webkit-transform; } 366 | .psv-tooltip--bottom-right .psv-tooltip-arrow { 367 | border-bottom-color: rgba(61, 61, 61, 0.8); } 368 | .psv-tooltip--top-left { 369 | -webkit-box-shadow: -3px -3px 0 rgba(90, 90, 90, 0.7); 370 | box-shadow: -3px -3px 0 rgba(90, 90, 90, 0.7); 371 | -webkit-transform: translate3d(0, 5px, 0); 372 | transform: translate3d(0, 5px, 0); 373 | -webkit-transition-property: opacity, -webkit-transform; 374 | transition-property: opacity, -webkit-transform; 375 | transition-property: opacity, transform; 376 | transition-property: opacity, transform, -webkit-transform; } 377 | .psv-tooltip--top-left .psv-tooltip-arrow { 378 | border-top-color: rgba(61, 61, 61, 0.8); } 379 | .psv-tooltip--top-right { 380 | -webkit-box-shadow: 3px -3px 0 rgba(90, 90, 90, 0.7); 381 | box-shadow: 3px -3px 0 rgba(90, 90, 90, 0.7); 382 | -webkit-transform: translate3d(0, 5px, 0); 383 | transform: translate3d(0, 5px, 0); 384 | -webkit-transition-property: opacity, -webkit-transform; 385 | transition-property: opacity, -webkit-transform; 386 | transition-property: opacity, transform; 387 | transition-property: opacity, transform, -webkit-transform; } 388 | .psv-tooltip--top-right .psv-tooltip-arrow { 389 | border-top-color: rgba(61, 61, 61, 0.8); } 390 | .psv-tooltip--visible { 391 | -webkit-transform: translate3d(0, 0, 0); 392 | transform: translate3d(0, 0, 0); 393 | opacity: 1; 394 | -webkit-transition-duration: 100ms; 395 | transition-duration: 100ms; } 396 | 397 | .psv-notification { 398 | position: absolute; 399 | z-index: 100; 400 | bottom: 40px; 401 | display: -webkit-box; 402 | display: -ms-flexbox; 403 | display: flex; 404 | -webkit-box-pack: center; 405 | -ms-flex-pack: center; 406 | justify-content: center; 407 | -webkit-box-sizing: border-box; 408 | box-sizing: border-box; 409 | width: 100%; 410 | padding: 0 2em; 411 | opacity: 0; 412 | -webkit-transition-property: opacity, bottom; 413 | transition-property: opacity, bottom; 414 | -webkit-transition-timing-function: ease-in-out; 415 | transition-timing-function: ease-in-out; 416 | -webkit-transition-duration: 200ms; 417 | transition-duration: 200ms; } 418 | .psv-notification-content { 419 | max-width: 50em; 420 | background-color: rgba(61, 61, 61, 0.8); 421 | border-radius: 4px; 422 | padding: 0.5em 1em; 423 | font: 14px sans-serif; 424 | color: white; } 425 | .psv-notification--visible { 426 | opacity: 100; 427 | bottom: 80px; } 428 | 429 | .psv-overlay { 430 | display: -webkit-box; 431 | display: -ms-flexbox; 432 | display: flex; 433 | -webkit-box-orient: vertical; 434 | -webkit-box-direction: normal; 435 | -ms-flex-direction: column; 436 | flex-direction: column; 437 | -webkit-box-align: center; 438 | -ms-flex-align: center; 439 | align-items: center; 440 | -webkit-box-pack: center; 441 | -ms-flex-pack: center; 442 | justify-content: center; 443 | position: absolute; 444 | z-index: 110; 445 | top: 0; 446 | left: 0; 447 | bottom: 0; 448 | right: 0; 449 | background: radial-gradient(#fff 0%, #fdfdfd 16%, #fbfbfb 33%, #f8f8f8 49%, #efefef 66%, #dfdfdf 82%, #bfbfbf 100%); 450 | opacity: 0.8; } 451 | .psv-overlay-image { 452 | margin-bottom: 4vh; } 453 | .psv-overlay-image svg { 454 | width: 50vw; } 455 | @media screen and (orientation: landscape) { 456 | .psv-overlay-image svg { 457 | width: 25vw; } } 458 | .psv-overlay-text { 459 | font: 30px sans-serif; 460 | text-align: center; } 461 | .psv-overlay-subtext { 462 | font: 20px sans-serif; 463 | opacity: .8; 464 | text-align: center; } 465 | 466 | .psv-markers-list-title { 467 | font: 24px sans-serif; 468 | margin: 1em 0; 469 | text-align: center; 470 | text-shadow: 2px 1px #000; } 471 | 472 | .psv-markers-list { 473 | list-style: none; 474 | margin: 0; 475 | padding: 0; 476 | overflow: hidden; } 477 | .psv-markers-list-item { 478 | clear: both; 479 | min-height: 20px; 480 | padding: 0.5em 1em; 481 | cursor: pointer; 482 | -webkit-transform: translateX(0); 483 | transform: translateX(0); 484 | -webkit-transition: -webkit-transform .3s ease-in-out; 485 | transition: -webkit-transform .3s ease-in-out; 486 | transition: transform .3s ease-in-out; 487 | transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out; } 488 | .psv-markers-list-item::before { 489 | content: ''; 490 | position: absolute; 491 | top: 0; 492 | left: 0; 493 | height: 100%; 494 | width: 10px; 495 | margin-left: -10px; } 496 | .psv-markers-list-item:nth-child(odd), .psv-markers-list-item:nth-child(odd)::before { 497 | background: rgba(255, 255, 255, 0.1); } 498 | .psv-markers-list-item:nth-child(even), .psv-markers-list-item:nth-child(even)::before { 499 | background: transparent; } 500 | .psv-markers-list-item:hover { 501 | -webkit-transform: translateX(10px); 502 | transform: translateX(10px); 503 | -webkit-transition: -webkit-transform .1s ease-in-out; 504 | transition: -webkit-transform .1s ease-in-out; 505 | transition: transform .1s ease-in-out; 506 | transition: transform .1s ease-in-out, -webkit-transform .1s ease-in-out; } 507 | .psv-markers-list-image { 508 | float: left; 509 | width: 20px; } 510 | .psv-markers-list-name { 511 | margin: 0; 512 | padding: 0; } 513 | .psv-markers-list-image + .psv-markers-list-name { 514 | padding-left: calc(20px + 0.5em); } 515 | 516 | .psv-autorotate-button { 517 | width: 25px; 518 | height: 25px; 519 | padding: 7.5px; } 520 | 521 | .psv-zoom-button { 522 | cursor: default; 523 | width: 128px; } 524 | .psv-zoom-button-minus, .psv-zoom-button-plus { 525 | float: left; 526 | position: relative; 527 | cursor: pointer; 528 | width: 16px; 529 | height: 16px; } 530 | .psv-zoom-button-minus .psv-button-svg, .psv-zoom-button-plus .psv-button-svg { 531 | position: relative; 532 | top: 20%; } 533 | .psv-zoom-button-range { 534 | float: left; 535 | padding: 9.5px 8px; } 536 | .psv-zoom-button-line { 537 | position: relative; 538 | cursor: pointer; 539 | width: 80px; 540 | height: 1px; 541 | background: rgba(255, 255, 255, 0.7); 542 | -webkit-transition: all .3s ease; 543 | transition: all .3s ease; } 544 | .psv-zoom-button-handle { 545 | position: absolute; 546 | border-radius: 50%; 547 | top: -3px; 548 | width: 7px; 549 | height: 7px; 550 | background: rgba(255, 255, 255, 0.7); 551 | -webkit-transform: scale(1); 552 | transform: scale(1); 553 | -webkit-transition: -webkit-transform .3s ease; 554 | transition: -webkit-transform .3s ease; 555 | transition: transform .3s ease; 556 | transition: transform .3s ease, -webkit-transform .3s ease; } 557 | .psv-zoom-button:not(.psv-button--disabled):hover .psv-zoom-button-line { 558 | -webkit-box-shadow: 0 0 2px rgba(255, 255, 255, 0.7); 559 | box-shadow: 0 0 2px rgba(255, 255, 255, 0.7); } 560 | .psv-zoom-button:not(.psv-button--disabled):hover .psv-zoom-button-handle { 561 | -webkit-transform: scale(1.3); 562 | transform: scale(1.3); } 563 | @media (max-width: 600px) { 564 | .psv-zoom-button { 565 | width: auto; 566 | padding: 0; } 567 | .psv-zoom-button-range { 568 | display: none; } 569 | .psv-zoom-button-minus, .psv-zoom-button-plus { 570 | width: 20px; 571 | height: 20px; 572 | padding: 10px; } 573 | .psv-zoom-button-minus .psv-button-svg, .psv-zoom-button-plus .psv-button-svg { 574 | top: 0; } } 575 | 576 | @media (max-width: 600px) { 577 | .psv-is-touch .psv-zoom-button { 578 | display: none; } } 579 | -------------------------------------------------------------------------------- /assets/sass/layout/_wrapper.scss: -------------------------------------------------------------------------------- 1 | /// 2 | /// Paradigm Shift by HTML5 UP 3 | /// html5up.net | @ajlkn 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5 | /// 6 | 7 | /* Wrapper */ 8 | 9 | @mixin wrapper-pad($pad) { 10 | padding: 0 0 ($pad * 2) 0; 11 | 12 | // Sections (all). 13 | section { 14 | margin: ($pad * 1.5) 0 0 0; 15 | 16 | > header { 17 | padding: 0 ($pad * 2) 0 ($pad); 18 | width: _size(header-width) + ($pad * 2); 19 | } 20 | 21 | > .content { 22 | padding: 0 $pad; 23 | } 24 | 25 | > footer { 26 | padding: 0 ($pad * 2); 27 | } 28 | } 29 | 30 | // Sections (top level). 31 | > section { 32 | > header { 33 | 34 | // Line. 35 | &:before { 36 | height: calc(100% + #{$pad * 2}); 37 | left: calc(50vw - #{$pad}); 38 | } 39 | 40 | // Headings. 41 | h1, h2 { 42 | 43 | // Line connector. 44 | &:before { 45 | right: ($pad * -1); 46 | width: ($pad * 0.5); 47 | } 48 | 49 | // Terminator. 50 | &:after { 51 | right: ($pad * -0.5); 52 | } 53 | 54 | } 55 | 56 | } 57 | 58 | > .content { 59 | > section { 60 | left: calc(-50vw - #{$pad}); 61 | 62 | > header { 63 | width: _size(subheader-width) + ($pad * 2); 64 | } 65 | } 66 | } 67 | 68 | // Intro. 69 | &.intro { 70 | > header { 71 | 72 | // Hack: Chrome's grid implementation screws up absolute element placement within a static child element. 73 | 74 | // Set width on all child elements and right-align. 75 | > * { 76 | width: (_size(header-width) - $pad); 77 | } 78 | 79 | // Line. 80 | &:before { 81 | margin-left: calc(50vw - #{$pad * 2}); 82 | } 83 | 84 | @include breakpoint('<=medium') { 85 | > * { 86 | width: 100%; 87 | } 88 | 89 | &:before { 90 | margin-left: 0; 91 | } 92 | } 93 | 94 | } 95 | } 96 | 97 | // Last. 98 | &:last-of-type { 99 | > header { 100 | 101 | // Terminator. 102 | &:after { 103 | left: calc(50vw - #{$pad} - 0.25rem + #{_size(line-width) * 0.5}); 104 | } 105 | 106 | } 107 | } 108 | 109 | } 110 | 111 | // Copyright. 112 | .copyright { 113 | padding: 0 $pad; 114 | } 115 | 116 | } 117 | 118 | @mixin wrapper-pad-portrait($pad, $tbFactor: 1) { 119 | 120 | // Sections (all). 121 | section { 122 | margin: ($pad * 1.5) 0 0 0; 123 | } 124 | 125 | // Sections (top level). 126 | > section { 127 | margin: 0; 128 | 129 | > header { 130 | padding: ($pad * $tbFactor) $pad; 131 | } 132 | 133 | > .content { 134 | padding: ($pad * $tbFactor) $pad; 135 | 136 | > section { 137 | margin: ($pad * $tbFactor) 0; 138 | } 139 | } 140 | 141 | > footer { 142 | padding: 0 $pad ($pad * $tbFactor) $pad; 143 | } 144 | 145 | // Intro. 146 | &.intro { 147 | > header { 148 | padding: (($pad * 1.25) + 3rem) $pad ($pad * 1.25) $pad; 149 | } 150 | } 151 | 152 | } 153 | 154 | // Copyright. 155 | .copyright { 156 | padding: 0 $pad $pad $pad; 157 | } 158 | 159 | } 160 | 161 | #wrapper { 162 | $pad: 5rem; 163 | 164 | position: relative; 165 | width: 100vw; 166 | 167 | // Background. 168 | &:before { 169 | background-attachment: fixed; 170 | background-color: _palette(accent); 171 | background-image: svg-url(' '); 172 | background-position: -50% 10%; 173 | background-repeat: repeat-y; 174 | background-size: 75% auto; 175 | content: ''; 176 | display: block; 177 | height: 100%; 178 | left: 0; 179 | position: absolute; 180 | top: 0; 181 | width: 50vw; 182 | z-index: -1; 183 | } 184 | 185 | // Sections (all). 186 | section { 187 | display: grid; 188 | grid-template-areas: "header content" "footer content"; 189 | grid-template-columns: 50vw 50vw; 190 | grid-template-rows: 1fr; 191 | 192 | &:first-child { 193 | margin-top: 0; 194 | } 195 | 196 | > header { 197 | grid-area: header; 198 | justify-self: end; 199 | text-align: right; 200 | 201 | h2 { 202 | margin: 0 0 (_size(element-margin) * 2.5) 0; 203 | } 204 | 205 | h1 + p { 206 | font-family: _font(family-heading); 207 | font-size: 0.8rem; 208 | font-weight: _font(weight-heading-extralight); 209 | letter-spacing: _font(kerning-heading); 210 | line-height: 2.5; 211 | text-transform: uppercase; 212 | } 213 | 214 | ul.actions { 215 | justify-content: flex-end; 216 | } 217 | } 218 | 219 | > .content { 220 | grid-area: content; 221 | max-width: _size(content-width); 222 | position: relative; 223 | } 224 | 225 | > footer { 226 | grid-area: footer; 227 | text-align: right; 228 | 229 | ul.actions { 230 | justify-content: flex-end; 231 | } 232 | } 233 | } 234 | 235 | // Sections (top level). 236 | > section { 237 | position: relative; 238 | 239 | > header { 240 | 241 | // Line. 242 | &:before { 243 | background: _palette(accent-border); 244 | content: ''; 245 | display: block; 246 | margin-top: 1rem; 247 | position: absolute; 248 | width: _size(line-width); 249 | } 250 | 251 | // Headings. 252 | h1, h2 { 253 | position: relative; 254 | 255 | // Line connector. 256 | &:before { 257 | background: _palette(accent-border); 258 | content: ''; 259 | display: block; 260 | height: _size(line-width); 261 | position: absolute; 262 | top: 1rem; 263 | } 264 | 265 | // Terminator. 266 | &:after { 267 | background: _palette(accent-border); 268 | border-radius: 0.5rem; 269 | content: ''; 270 | display: block; 271 | height: 0.5rem; 272 | position: absolute; 273 | top: 0.75rem; 274 | width: 0.5rem; 275 | } 276 | 277 | } 278 | 279 | h1 { 280 | margin-top: -2rem; 281 | 282 | &:before { 283 | top: 3rem; 284 | } 285 | 286 | &:after { 287 | top: 2.75rem; 288 | } 289 | } 290 | 291 | } 292 | 293 | > .content { 294 | > section { 295 | position: relative; 296 | 297 | &:first-child { 298 | margin-top: 6rem; 299 | } 300 | } 301 | } 302 | 303 | // Intro. 304 | &.intro { 305 | align-items: center; 306 | 307 | > header { 308 | padding-top: 4rem; 309 | 310 | // Hack: Chrome's grid implementation screws up absolute element placement within a static child element. 311 | width: 100%; 312 | 313 | // Set width on all child elements and right-align. 314 | > * { 315 | margin-left: auto; 316 | } 317 | 318 | // Line. 319 | &:before { 320 | left: auto; 321 | } 322 | 323 | } 324 | 325 | > .content { 326 | height: 100vh; 327 | max-width: none; 328 | } 329 | } 330 | 331 | // Last. 332 | &:last-of-type { 333 | > header { 334 | 335 | // Line. 336 | &:before { 337 | height: 100%; 338 | } 339 | 340 | // Terminator. 341 | &:after { 342 | background: _palette(accent-border); 343 | border-radius: 0.5rem; 344 | bottom: -1.5rem; 345 | content: ''; 346 | display: block; 347 | height: 0.5rem; 348 | position: absolute; 349 | width: 0.5rem; 350 | z-index: 1; 351 | } 352 | 353 | } 354 | } 355 | 356 | } 357 | 358 | // Copyright. 359 | .copyright { 360 | color: _palette(fg-light); 361 | font-size: 1rem; 362 | left: 50vw; 363 | position: relative; 364 | width: 50vw; 365 | 366 | a { 367 | color: inherit; 368 | } 369 | } 370 | 371 | // Pad. 372 | @include wrapper-pad($pad); 373 | 374 | @include breakpoint('<=large') { 375 | $pad: 4rem; 376 | 377 | // Pad. 378 | @include wrapper-pad($pad); 379 | 380 | } 381 | 382 | @include breakpoint('<=medium') { 383 | $pad: 4rem; 384 | 385 | padding: 0; 386 | 387 | // Background. 388 | &:before { 389 | display: none; 390 | } 391 | 392 | // Sections (all). 393 | section { 394 | grid-template-areas: "header" "content" "footer"; 395 | grid-template-columns: 1fr; 396 | grid-template-rows: 3fr; 397 | 398 | > header { 399 | justify-self: start; 400 | padding: 0; 401 | text-align: left; 402 | width: 100%; 403 | 404 | ul.actions { 405 | justify-content: flex-start; 406 | } 407 | } 408 | 409 | > .content { 410 | padding: 0; 411 | width: 100%; 412 | overflow-x: hidden; 413 | } 414 | 415 | > footer { 416 | padding: 0; 417 | text-align: left; 418 | 419 | ul.actions { 420 | justify-content: flex-start; 421 | } 422 | } 423 | } 424 | 425 | // Sections (top level). 426 | > section { 427 | margin: 0; 428 | 429 | > header { 430 | background-attachment: fixed; 431 | background-color: _palette(accent); 432 | background-image: svg-url(' '); 433 | background-position: 25% 50%; 434 | background-repeat: repeat-y; 435 | background-size: 40rem auto; 436 | 437 | > * { 438 | max-width: 25rem; 439 | } 440 | 441 | > :last-child { 442 | margin-bottom: 0; 443 | } 444 | 445 | // Line. 446 | &:before { 447 | display: none; 448 | } 449 | 450 | // Headings. 451 | h1, h2 { 452 | 453 | // Line connector. 454 | &:before { 455 | display: none; 456 | } 457 | 458 | // Terminator. 459 | &:after { 460 | display: none; 461 | } 462 | 463 | } 464 | 465 | } 466 | 467 | > .content { 468 | > :last-child { 469 | margin-bottom: 0; 470 | } 471 | 472 | > section { 473 | left: 0; 474 | 475 | &:first-child { 476 | margin-top: 0; 477 | } 478 | 479 | > header { 480 | width: 100%; 481 | } 482 | 483 | &:last-child { 484 | margin-bottom: 0; 485 | } 486 | } 487 | } 488 | 489 | > footer { 490 | > :last-child { 491 | margin-bottom: 0; 492 | } 493 | } 494 | 495 | // Intro. 496 | &.intro { 497 | margin-bottom: 0; 498 | 499 | > header { 500 | margin-bottom: 0; 501 | 502 | ul.actions { 503 | display: none; 504 | } 505 | 506 | // Hack: Undo Chrome grid hack. 507 | > * { 508 | margin-left: 0; 509 | margin-right: 0; 510 | width: 100%; 511 | } 512 | 513 | > ul.actions { 514 | margin-left: (_size(element-margin) * -0.5); 515 | } 516 | 517 | &:before { 518 | margin-left: 0; 519 | } 520 | 521 | } 522 | } 523 | 524 | // Last. 525 | &:last-of-type { 526 | > header { 527 | 528 | // Terminator. 529 | &:after { 530 | display: none; 531 | } 532 | 533 | } 534 | } 535 | 536 | } 537 | 538 | // Copyright. 539 | .copyright { 540 | left: 0; 541 | width: 100%; 542 | } 543 | 544 | // Pad. 545 | @include wrapper-pad-portrait($pad); 546 | 547 | } 548 | 549 | @include breakpoint('<=small') { 550 | $pad: 2rem; 551 | 552 | // Pad. 553 | @include wrapper-pad-portrait($pad, 1.5); 554 | 555 | } 556 | 557 | @include breakpoint('<=xxsmall') { 558 | $pad: 1.5rem; 559 | 560 | // Pad. 561 | @include wrapper-pad-portrait($pad, 1.5); 562 | 563 | } 564 | 565 | } 566 | 567 | // Mobile. 568 | body.is-mobile { 569 | #wrapper { 570 | 571 | // Background. 572 | &:before { 573 | background-attachment: scroll; 574 | background-position: 50% -3%; 575 | background-repeat: repeat-y; 576 | background-size: 150% auto; 577 | } 578 | 579 | // Sections (top level). 580 | > section { 581 | > header { 582 | background-attachment: scroll; 583 | background-position: 25% 50%; 584 | } 585 | 586 | // Intro. 587 | &.intro { 588 | > header { 589 | background-position: 25% 23%; 590 | } 591 | } 592 | 593 | } 594 | 595 | } 596 | } 597 | 598 | // Preload. 599 | #wrapper { 600 | 601 | // Background. 602 | &:before { 603 | transition: opacity 1s ease; 604 | 605 | body.is-preload & { 606 | opacity: 0; 607 | } 608 | } 609 | 610 | // Sections (top level). 611 | > section { 612 | 613 | // Intro. 614 | &.intro { 615 | transition: opacity 1s ease; 616 | opacity: 1; 617 | 618 | > header { 619 | transition: transform 1s ease; 620 | } 621 | 622 | > .content { 623 | transition: transform 1s ease; 624 | } 625 | 626 | body.is-preload & { 627 | opacity: 0; 628 | 629 | > header { 630 | transform: translateY(1rem); 631 | } 632 | 633 | > .content { 634 | transform: translateY(-1rem); 635 | } 636 | } 637 | 638 | @include breakpoint('<=large') { 639 | > header { 640 | > * { 641 | transition: transform 1s ease, opacity 1s ease; 642 | } 643 | } 644 | 645 | body.is-preload & { 646 | > header { 647 | transform: none; 648 | 649 | > * { 650 | transform: translate(-0.5rem); 651 | opacity: 0; 652 | } 653 | } 654 | 655 | > .content { 656 | transform: none; 657 | } 658 | } 659 | } 660 | } 661 | 662 | } 663 | 664 | } 665 | 666 | // IE. 667 | body.is-ie { 668 | #wrapper { 669 | $pad: 5rem; 670 | 671 | // Sections (all). 672 | section { 673 | display: flex; 674 | flex-wrap: wrap; 675 | 676 | > header { 677 | width: 50%; 678 | } 679 | 680 | > .content { 681 | width: 50%; 682 | } 683 | 684 | > footer { 685 | width: 50%; 686 | text-align: left; 687 | margin-left: 50%; 688 | padding: $pad; 689 | } 690 | } 691 | 692 | // Sections (top level). 693 | > section { 694 | > .content { 695 | > section { 696 | width: 100vw; 697 | } 698 | } 699 | } 700 | 701 | @include breakpoint('<=large') { 702 | $pad: 4rem; 703 | 704 | // Sections (all). 705 | section { 706 | > footer { 707 | padding: $pad; 708 | } 709 | } 710 | 711 | } 712 | 713 | } 714 | } --------------------------------------------------------------------------------