Changeset 1981557
- Timestamp:
- 11/27/2018 07:01:46 PM (7 years ago)
- Location:
- schedule-builder-online/trunk
- Files:
-
- 6 edited
-
public/css/style.css (modified) (7 diffs)
-
public/css/style.min.css (modified) (1 diff)
-
public/js/main.js (modified) (3 diffs)
-
public/js/main.min.js (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
schedule-builder-online.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
schedule-builder-online/trunk/public/css/style.css
r1924298 r1981557 180 180 line-height: normal!important; 181 181 } 182 .sboTemplate p { 183 padding: 0px!important; 184 margin: 0px; 185 line-height: 21px!important; 186 color: #000000; 187 font-family: 'Roboto Slab',sans-serif!important; 188 } 182 189 .sboWeekDays { 183 190 float: left; 184 191 width: 100%; 185 border-bottom: 1px solid ;192 border-bottom: 1px solid!important; 186 193 z-index: 999; 187 194 background-color: #fff; … … 202 209 .sboWeekDay p { 203 210 text-align: center; 204 margin-top: 0px;205 font-weight: bold ;206 margin-bottom: 3px;207 font- family: 'Roboto Slab',sans-serif;211 margin-top: 3px!important; 212 font-weight: bold!important; 213 font-family: 'Roboto Slab',sans-serif; 214 font-size: 16px!important; 208 215 } 209 216 .sboWeekDayDate { … … 236 243 .sboPHour { 237 244 margin: 0; 238 text-align: center ;239 margin-top: 5px ;245 text-align: center!important; 246 margin-top: 5px!important; 240 247 display: table-cell; 241 248 vertical-align: middle; 242 font-weight: bold ;243 font-family: 'Roboto Slab',sans-serif ;249 font-weight: bold!important; 250 font-family: 'Roboto Slab',sans-serif!important; 244 251 } 245 252 .sboDays { … … 277 284 } 278 285 .sboObjectName { 279 margin: 8px 5% 0 ;280 word-wrap: break-word ;281 font-size: 14px ;282 text-align: center ;283 font-weight: bold ;286 margin: 8px 5% 0!important; 287 word-wrap: break-word!important; 288 font-size: 14px!important; 289 text-align: center!important; 290 font-weight: bold!important; 284 291 font-family: 'Roboto Slab',sans-serif; 285 292 } 286 293 .sboObjectText { 287 margin: 5px 5% ;288 word-wrap: break-word ;289 font-weight: 400 ;290 font-size: 12px ;291 height: 16px ;294 margin: 5px 5%!important; 295 word-wrap: break-word!important; 296 font-weight: 400!important; 297 font-size: 12px!important; 298 height: 16px!important; 292 299 font-family: 'Roboto Slab',sans-serif; 293 300 } 294 301 .timeMarkInline { 295 302 display: none; 296 font-size: 12px ;297 text-align: left ;298 margin: 3px 5% 0 ;299 font-weight: 400 ;303 font-size: 12px!important; 304 text-align: left!important; 305 margin: 3px 5% 0!important; 306 font-weight: 400!important; 300 307 font-family: 'Roboto Slab',sans-serif; 301 308 } 302 309 .timeMarkTop { 303 310 position: absolute; 304 top: -8.5px ;305 background: #fff ;306 border-radius: 4px ;307 font-size: 12px ;308 left: 3px ;311 top: -8.5px!important; 312 background: #fff!important; 313 border-radius: 4px!important; 314 font-size: 12px!important; 315 left: 3px!important; 309 316 z-index: 1; 310 317 font-family: 'Roboto Slab',sans-serif; … … 312 319 .timeMarkBottom { 313 320 position: absolute; 314 bottom: -8.5px ;315 background: #fff ;316 border-radius: 4px ;317 font-size: 12px ;318 right: 3px ;321 bottom: -8.5px!important; 322 background: #fff!important; 323 border-radius: 4px!important; 324 font-size: 12px!important; 325 right: 3px!important; 319 326 z-index: 1; 320 327 font-family: 'Roboto Slab',sans-serif; … … 326 333 position: absolute; 327 334 bottom: 0px; 328 text-align: center ;329 width: 100%; 330 padding: 5px 0px ;331 background: rgba(221, 134, 134, 0.75) ;332 font-weight: bold ;335 text-align: center!important; 336 width: 100%; 337 padding: 5px 0px!important; 338 background: rgba(221, 134, 134, 0.75)!important; 339 font-weight: bold!important; 333 340 z-index: 9999; 334 border-top: 1px solid #8e6a6a ;335 cursor: pointer ;341 border-top: 1px solid #8e6a6a!important; 342 cursor: pointer!important; 336 343 } 337 344 .sboToggle:hover { 338 background: rgb(221, 134, 134) ;345 background: rgb(221, 134, 134)!important; 339 346 } 340 347 .sboLink { … … 343 350 height: 100%; 344 351 z-index: 99999999; 345 top: -36px ;352 top: -36px!important; 346 353 box-shadow: none!important; 347 354 color: transparent!important; -
schedule-builder-online/trunk/public/css/style.min.css
r1924298 r1981557 1 @font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCLwR26eg.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCCwR26eg.woff2) format("woff2");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCKwR26eg.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCFwR26eg.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCJwR26eg.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCIwR26eg.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCGwR0.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufA5qW54A.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufJ5qW54A.woff2) format("woff2");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufB5qW54A.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufO5qW54A.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufC5qW54A.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufD5qW54A.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufN5qU.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CLwR26eg.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CCwR26eg.woff2) format("woff2");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CKwR26eg.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CFwR26eg.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CJwR26eg.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CIwR26eg.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CGwR0.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.sboTemplate{width:890px;background-color:#fff;border:1px solid;size:portrait;height:auto;background-position-x:-1px;background-position-y:-1px;transform-origin:0 0;box-sizing:content-box;overflow:hidden;line-height:normal!important}.sbo WeekDays{float:left;width:100%;border-bottom:1px solid;z-index:999;background-color:#fff;font-size:16px}.leftScheduleCorner{width:0;height:10px;float:left;margin-right:29px}.sboWeekDay{float:left;border-left:1px solid;width:171.2px;height:100%}.sboWeekDay p{text-align:center;margin-top:0px;font-weight:700;margin-bottom:3px;font-family:'Roboto Slab',sans-serif}.sboWeekDayDate{font-weight:400!important}.sboHours{float:left;width:29px;border-right:1px solid;position:relative;height:799px;z-index:1}.sboHour{width:100%;height:100px;border-bottom:1px solid;box-sizing:border-box;float:left}.sboHours div:last-child{border-bottom:none}.sboHourText{display:table;float:left;height:100%;width:100%}.sboPHour{margin:0;text-align:center;margin-top:5px;display:table-cell;vertical-align:middle;font-weight:700;font-family:'Roboto Slab',sans-serif}.sboDays{float:left;width:860px;height:799px;background-color:#d8d8d8;z-index:999}.sboDays .sboDay:first-child{margin-left:-1px;border-left:1px solid rgba(255,255,255,.5)}.sboDay{float:left;border-left:1px solid;height:100%;position:relative;width:171.2px}.sboDayObject{width:100%;margin-left:0!important;border-top:1px solid;border-bottom:1px solid;position:absolute;cursor:pointer;box-sizing:border-box}.sboObjectPContainer{float:left;width:100%;height:100%;overflow:hidden}.sboObjectName{margin:8px 5% 0;word-wrap:break-word;font-size:14px;text-align:center;font-weight:700;font-family:'Roboto Slab',sans-serif}.sboObjectText{margin:5px 5%;word-wrap:break-word;font-weight:400;font-size:12px;height:16px;font-family:'Roboto Slab',sans-serif}.timeMarkInline{display:none;font-size:12px;text-align:left;margin:3px 5% 0;font-weight:400;font-family:'Roboto Slab',sans-serif}.timeMarkTop{position:absolute;top:-8.5px;background:#fff;border-radius:4px;font-size:12px;left:3px;z-index:1;font-family:'Roboto Slab',sans-serif}.timeMarkBottom{position:absolute;bottom:-8.5px;background:#fff;border-radius:4px;font-size:12px;right:3px;z-index:1;font-family:'Roboto Slab',sans-serif}.sboToggled{height:300px}.sboToggle{position:absolute;bottom:0;text-align:center;width:100%;padding:5px 0;background:rgba(221,134,134,0.75);font-weight:700;z-index:9999;border-top:1px solid #8e6a6a;cursor:pointer}.sboToggle:hover{background:#dd8686}.sboLink{position:absolute;width:101%;height:100%;z-index:99999999;top:-36px;box-shadow:none!important;color:transparent!important;text-decoration:none!important;border:none!important}.sboContainer{margin-bottom:15px}1 @font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCLwR26eg.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCCwR26eg.woff2) format("woff2");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCKwR26eg.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCFwR26eg.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCJwR26eg.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCIwR26eg.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:300;src:local('Roboto Slab Light'),local(RobotoSlab-Light),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCGwR0.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufA5qW54A.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufJ5qW54A.woff2) format("woff2");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufB5qW54A.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufO5qW54A.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufC5qW54A.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufD5qW54A.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:400;src:local('Roboto Slab Regular'),local(RobotoSlab-Regular),url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufN5qU.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CLwR26eg.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CCwR26eg.woff2) format("woff2");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CKwR26eg.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CFwR26eg.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CJwR26eg.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CIwR26eg.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:700;src:local('Roboto Slab Bold'),local(RobotoSlab-Bold),url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CGwR0.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.sboTemplate{width:890px;background-color:#fff;border:1px solid;size:portrait;height:auto;background-position-x:-1px;background-position-y:-1px;transform-origin:0 0;box-sizing:content-box;overflow:hidden;line-height:normal!important}.sboTemplate p{padding:0!important;margin:0;line-height:21px!important;color:#000;font-family:'Roboto Slab',sans-serif!important}.sboWeekDays{float:left;width:100%;border-bottom:1px solid!important;z-index:999;background-color:#fff;font-size:16px}.leftScheduleCorner{width:0;height:10px;float:left;margin-right:29px}.sboWeekDay{float:left;border-left:1px solid;width:171.2px;height:100%}.sboWeekDay p{text-align:center;margin-top:3px!important;font-weight:700!important;font-family:'Roboto Slab',sans-serif;font-size:16px!important}.sboWeekDayDate{font-weight:400!important}.sboHours{float:left;width:29px;border-right:1px solid;position:relative;height:799px;z-index:1}.sboHour{width:100%;height:100px;border-bottom:1px solid;box-sizing:border-box;float:left}.sboHours div:last-child{border-bottom:none}.sboHourText{display:table;float:left;height:100%;width:100%}.sboPHour{margin:0;text-align:center!important;margin-top:5px!important;display:table-cell;vertical-align:middle;font-weight:700!important;font-family:'Roboto Slab',sans-serif!important}.sboDays{float:left;width:860px;height:799px;background-color:#d8d8d8;z-index:999}.sboDays .sboDay:first-child{margin-left:-1px;border-left:1px solid rgba(255,255,255,.5)}.sboDay{float:left;border-left:1px solid;height:100%;position:relative;width:171.2px}.sboDayObject{width:100%;margin-left:0!important;border-top:1px solid;border-bottom:1px solid;position:absolute;cursor:pointer;box-sizing:border-box}.sboObjectPContainer{float:left;width:100%;height:100%;overflow:hidden}.sboObjectName{margin:8px 5% 0!important;word-wrap:break-word!important;font-size:14px!important;text-align:center!important;font-weight:700!important;font-family:'Roboto Slab',sans-serif}.sboObjectText{margin:5px 5%!important;word-wrap:break-word!important;font-weight:400!important;font-size:12px!important;height:16px!important;font-family:'Roboto Slab',sans-serif}.timeMarkInline{display:none;font-size:12px!important;text-align:left!important;margin:3px 5% 0!important;font-weight:400!important;font-family:'Roboto Slab',sans-serif}.timeMarkTop{position:absolute;top:-8.5px!important;background:#fff!important;border-radius:4px!important;font-size:12px!important;left:3px!important;z-index:1;font-family:'Roboto Slab',sans-serif}.timeMarkBottom{position:absolute;bottom:-8.5px!important;background:#fff!important;border-radius:4px!important;font-size:12px!important;right:3px!important;z-index:1;font-family:'Roboto Slab',sans-serif}.sboToggled{height:300px}.sboToggle{position:absolute;bottom:0;text-align:center!important;width:100%;padding:5px 0!important;background:rgba(221,134,134,0.75)!important;font-weight:700!important;z-index:9999;border-top:1px solid #8e6a6a!important;cursor:pointer!important}.sboToggle:hover{background:#dd8686!important}.sboLink{position:absolute;width:101%;height:100%;z-index:99999999;top:-36px!important;box-shadow:none!important;color:transparent!important;text-decoration:none!important;border:none!important}.sboContainer{margin-bottom:15px} -
schedule-builder-online/trunk/public/js/main.js
r1924298 r1981557 160 160 if(startDate == "0"){ 161 161 $(".sboWeekDays" + "." + uniqueID).append("<div class='sboWeekDay " + uniqueID + "' style='width: " + dayWidth + "px';><p>" + dayArray[language][k] + "</p></div>"); 162 $(".sboWeekDays" + "." + uniqueID).css("height","29px"); 162 163 } else { 163 164 $(".sboWeekDays" + "." + uniqueID).append("<div class='sboWeekDay " + uniqueID + "' style='width: " + dayWidth + "px';><p>" + dayArray[language][k] + "</p><p class='sboWeekDayDate'>" + startDate.date() + " " + monthArray[language][startDate.get("month")] + "</p></div>"); 165 $(".sboWeekDays" + "." + uniqueID).css("height","54px"); 164 166 startDate.add(1, "days"); 165 167 } … … 182 184 $(".sboHours" + "." + uniqueID).css("background","rgba(255, 255, 255, 0.75)"); 183 185 $(".sboDays" + "." + uniqueID).css("background","none"); 186 } else if(backgroundOption == "yesColor"){ 187 $(".sboTemplate" + "." + uniqueID).css("background-color", scheduleSettingsArray["backgroundColor"]); 188 $(".sboWeekDays" + "." + uniqueID).css("background","rgba(255, 255, 255, 0.75)"); 189 $(".sboHours" + "." + uniqueID).css("background","rgba(255, 255, 255, 0.75)"); 190 $(".sboDays" + "." + uniqueID).css("background","transparent"); 184 191 } 185 192 … … 246 253 var objectEnd = marginTop + objectHeight; 247 254 248 var objectName = objectsArray[k][i]["objectName"];249 var objectText = objectsArray[k][i]["objectInfo"];255 var objectName = decodeURIComponent(objectsArray[k][i]["objectName"]); 256 var objectText = decodeURIComponent(objectsArray[k][i]["objectInfo"]); 250 257 objectText = objectText.split("\n").join("<br />"); 251 258 -
schedule-builder-online/trunk/public/js/main.min.js
r1924298 r1981557 1 "use strict";$(document).ready(function(){var a,i,o,P,z,w,r,S,C,H,n,c,d,I,N,F,J={en:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],sv:["Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],es:["Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],de:["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],pt:["segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado","domingo"],it:["Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato","Domenica"],fr:["lundi","mardi","mercredi","jeudi","vendredi","semedi","dimanche"],pl:["Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota","Niedziela"],ru:["понедельник","вторник","среда","четверг","пятница","суббота","воскресенье"]},t={en:["January","February","March","April","May","June","July","August","September","October","November","December"],sv:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],es:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],de:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],pt:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],it:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],fr:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],pl:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],ru:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},W={"12hour":["12 AM","1 AM","2 AM","3 AM","4 AM","5 AM","6 AM","7 AM","8 AM","9 AM","10 AM","11 AM","12 PM","1 PM","2 PM","3 PM","4 PM","5 PM","6 PM","7 PM","8 PM","9 PM","10 PM","11 PM","12 AM"],military:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24"]},B=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],L=["12","1","2","3","4","5","6","7","8","9","10","11","12","1","2","3","4","5","6","7","8","9","10","11","12"],Y=["AM","AM","AM","AM","AM","AM","AM","AM","AM","AM","AM","AM","PM","PM","PM","PM","PM","PM","PM","PM","PM","PM","PM","PM","AM"],G=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],q=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],b={startDay:"0",endDay:"4",startTime:"8",endTime:"16",timeFormat:"12hour",timeMarks:"corners",startDate:"0",useBackground:"no",backgroundUrl:"",backgroundHeight:"",backgroundX:"",backgroundY:"",uniqueId:"",autoResize:"no"},U={0:{},1:{},2:{},3:{},4:{},5:{},6:{}},R=599,V="en",X=0,E=[];function l(){var e,s=(860-(1*(e=a<i||a==i?i-a+1:8-a+i)-1))/e;for(I=a;I<=i;I++)$(".sboDays."+S).append("<div class='sboDay "+J[V][I]+" "+S+"' style='width: "+s+"px';></div>"),"0"==o?$(".sboWeekDays."+S).append("<div class='sboWeekDay "+S+"' style='width: "+s+"px';><p>"+J[V][I]+"</p></div>"):($(".sboWeekDays."+S).append("<div class='sboWeekDay "+S+"' style='width: "+s+"px';><p>"+J[V][I]+"</p><p class='sboWeekDayDate'>"+o.date()+" "+t[V][o.get("month")]+"</p></div>"),o.add(1,"days")),6==a&&(a=0);d=z-P,"yes"!=c&&"yesUpload"!=c||($(".sboTemplate."+S).css({"background-image":"url("+b.backgroundUrl+")","background-size":"auto "+b.backgroundHeight+"px","background-position-x":b.backgroundX,"background-position-y":b.backgroundY}),$(".sboWeekDays."+S).css("background","rgba(255, 255, 255, 0.75)"),$(".sboHours."+S).css("background","rgba(255, 255, 255, 0.75)"),$(".sboDays."+S).css("background","none")),$(".sboHours."+S).height(d*w-1),$(".sboDays."+S).height(d*w-1),p(),"yes"==n&&(r=75,$(".sboDay."+S).each(function(){$(".sboDayObject."+S).each(function(){var e=$(this).find(".sboObjectName").outerHeight(!0)+$(this).find(".sboObjectText").outerHeight(!0);"inline"==H&&(e+=$(this).find(".timeMarkInline").outerHeight(!0));var s=e/$(this).height(),t=Math.ceil(s*w);r<=t&&(r=t)})}),w!=r&&(w=r,$(".sboHours."+S).height(d*w-1),$(".sboDays."+S).height(d*w-1),p())),$(window).trigger("resize"),h()}function p(){for($(".sboHours."+S).html(""),$(".sboDay."+S).each(function(){$(this).html("")}),I=P;I<z;I++)$(".sboHours."+S).append("<div class='sboHour "+S+"' style='height: "+w+"px;'><div class='sboHourText "+S+"'><p class='sboPHour "+S+"'>"+W[C][I]+"</p></div></div>");for(I=0;I<7;I++){var e=0;for(N in U[I])U[I].hasOwnProperty(N)&&e++;for(F=0;F<e;F++){var s,t,a,i=parseInt(U[I][F].startTime),o=parseInt(U[I][F].endTime);0==o&&(o=1440);var r=0,n=0;for(N=i;N<o;N++)n++;for(n=(n*(w/60)+1).toFixed(4),N=60*P;N<i;N++)r++;var c=(r=(r*(w/60)-1).toFixed(4))+n,d=U[I][F].objectName,b=U[I][F].objectInfo;b=b.split("\n").join("<br />");var l=U[I][F].backgroundColor,p=U[I][F].textColor1,u=U[I][F].textColor2,h=parseInt(U[I][F].objectNumber);if(X<h&&(X=h),!(r<-1||R+5<c)){var m=i%60,g=(i-m)/60,M=o%60,v=(o-M)/60;a="military"==C?(s=W.military[G.indexOf(g)]+":"+B[q.indexOf(m)])+" - "+(t=W.military[G.indexOf(v)]+":"+B[q.indexOf(M)]):(s=L[G.indexOf(g)]+":"+B[q.indexOf(m)]+" "+Y[G.indexOf(g)])+" - "+(t=L[G.indexOf(v)]+":"+B[q.indexOf(M)]+" "+Y[G.indexOf(v)]);var y,f=0;for(N=0;N<e;N++){var k=parseInt(U[I][N].startTime),x=parseInt(U[I][N].endTime),D=U[I][N].objectNumber;if(x<=i||o<=k||h==D||(f++,$("."+D+"."+S).is(":visible")&&(y=D)),"corners"==H&&h!=D){var O=$("."+D+"."+S).find(".timeMarkTop").html();s==$("."+D+"."+S).find(".timeMarkBottom").html()?E.push(h):t==O&&E.push(D)}}var A="";A=0==f?"<div class='sboDayObject "+h+" "+S+"' style='height: "+n+"px; top: "+r+"px; background-color: "+l+";'><div class='sboObjectPContainer "+S+"'><p class='sboObjectName "+S+"' style='color: "+p+";'>"+d+"</p><p class='sboObjectText "+S+"' style='color: "+u+";'>"+b+"</p></div></div>":$("."+y).is(":visible")&&parseInt($("."+y)[0].style.width)<100&&""==$("."+y)[0].style.left?"<div class='sboDayObject "+h+" "+S+"' style='width: 50%; left: 50%; height: "+n+"px; top: "+r+"px; background-color: "+l+"; border-left: 1px solid;'><div class='sboObjectPContainer "+S+"'><p class='sboObjectName "+S+"' style='color: "+p+";'>"+d+"</p><p class='sboObjectText "+S+"' style='color: "+u+";'>"+b+"</p></div></div>":"<div class='sboDayObject "+h+" "+S+"' style='width: 50%; height: "+n+"px; top: "+r+"px; background-color: "+l+";'><div class='sboObjectPContainer "+S+"'><p class='sboObjectName "+S+"' style='color: "+p+";'>"+d+"</p><p class='sboObjectText "+S+"' style='color: "+u+";'>"+b+"</p></div></div>",s="<span class='timeMarkTop timeMarkTop"+h+" "+S+"'>"+s+"</span>",t="<span class='timeMarkBottom timeMarkBottom"+h+" "+S+"'>"+t+"</span>",a="<span class='timeMarkInline timeMarkInline"+h+" "+S+"'>"+a+"</span>";var T="."+J[V][I]+"."+S;$(T).append(A);var j="."+h+".sboDayObject."+S;$(j).append(s),$(j).append(t),$(j).find(".sboObjectPContainer").append(a)}}}X++,function(){for("corners"==H||"yes"==H?$(".timeMarkTop ."+S+", .timeMarkBottom."+S).each(function(){$(this).css("display","block")}):($(".timeMarkTop ."+S+", .timeMarkBottom."+S).each(function(){$(this).css("display","none")}),$(".timeMarkInline."+S).each(function(){$(this).css("display","block")})),I=0;I<E.length;I++)$(".timeMarkTop"+E[I]+"."+S).hide()}(),"none"!=$(".sboTemplate."+S).css("background-image")?$(".sboDayObject."+S).each(function(){var e=$(this).css("background-color");-1<!e.indexOf("rgba")&&-1<!e.indexOf("0.75")&&(e=e.replace(")",", 0.75)").replace("rgb","rgba"),$(this).css("background-color",e))}):$(".sboDayObject."+S).each(function(){var e=$(this).css("background-color");e=e.replace(",0.75","").replace("rgba","rgb"),$(this).css("background-color",e)})}var u=[];function h(){0<u.length&&$.getScript("https://schedulebuilder.org/schedules/"+u[0]+".js").done(function(e,s){var t=$(".sboTemplate."+u[0]).attr("class").split(" ");u.splice(0,1),S=t[1],b=dbSchedule,U=dbObjects,X=0,E=[],a=b.startDay,i=b.endDay,"0"!=(o=b.startDate)&&(o=moment(o.substring(0,10),"YYYY-MM-DD")),P=parseInt(b.startTime),z=parseInt(b.endTime),w=75,C=b.timeFormat,H=b.timeMarks,n=b.autoResize,c=b.useBackground,V=t[2],d=0,"null",$(".sboTemplate."+S).append('<div class="sboWeekDays '+S+'"><div class="leftScheduleCorner '+S+'"></div></div><div class="sboHours '+S+'" style="height: 599px;"><div class="startTimeMarker '+S+'"></div><div class="endTimeMarker '+S+'"></div></div><div class="sboDays '+S+'" style="height: 599px;"></div>'),l()})}$(".sboTemplate").each(function(){var e=$(this).attr("class").split(" ");S=e[1],u.push(S)}).promise().done(function(){h()});var e=0;$(window).resize(function(){$(".sboTemplate").each(function(){$(this).parent().width()<893?(e=$(this).parent().width()/893,$(this).css({transform:"scale("+e+")"}),$(this).parent().height($(this).height()*e)):$(this).css({transform:"none"})})}),$(".sboToggle").click(function(){$(this).parent().hasClass("sboToggled")?($(this).parent().removeClass("sboToggled",1e3,function(){$(this).parent().height($(this).height()*e)}),$(this).html("Click to collapse ▲")):($(this).parent().addClass("sboToggled",1e3,function(){$(this).parent().height($(this).height()*e)}),$(this).html("Click to expand ▼"),$("html,body").animate({scrollTop:$($(this).parent()).offset().top-100},"slow"))})});1 "use strict";$(document).ready(function(){var o,t,i,P,C,z,r,w,S,I,n,c,d,H,N,W,F={en:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],sv:["Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],es:["Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],de:["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],pt:["segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado","domingo"],it:["Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato","Domenica"],fr:["lundi","mardi","mercredi","jeudi","vendredi","semedi","dimanche"],pl:["Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota","Niedziela"],ru:["понедельник","вторник","среда","четверг","пятница","суббота","воскресенье"]},a={en:["January","February","March","April","May","June","July","August","September","October","November","December"],sv:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],es:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],de:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],pt:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],it:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],fr:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],pl:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],ru:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},J={"12hour":["12 AM","1 AM","2 AM","3 AM","4 AM","5 AM","6 AM","7 AM","8 AM","9 AM","10 AM","11 AM","12 PM","1 PM","2 PM","3 PM","4 PM","5 PM","6 PM","7 PM","8 PM","9 PM","10 PM","11 PM","12 AM"],military:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24"]},B=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],L=["12","1","2","3","4","5","6","7","8","9","10","11","12","1","2","3","4","5","6","7","8","9","10","11","12"],Y=["AM","AM","AM","AM","AM","AM","AM","AM","AM","AM","AM","AM","PM","PM","PM","PM","PM","PM","PM","PM","PM","PM","PM","PM","AM"],U=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],G=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],b={startDay:"0",endDay:"4",startTime:"8",endTime:"16",timeFormat:"12hour",timeMarks:"corners",startDate:"0",useBackground:"no",backgroundUrl:"",backgroundHeight:"",backgroundX:"",backgroundY:"",uniqueId:"",autoResize:"no"},R={0:{},1:{},2:{},3:{},4:{},5:{},6:{}},q=599,V="en",X=0,E=[];function l(){var e,s=(860-(1*(e=o<t||o==t?t-o+1:8-o+t)-1))/e;for(H=o;H<=t;H++)$(".sboDays."+w).append("<div class='sboDay "+F[V][H]+" "+w+"' style='width: "+s+"px';></div>"),"0"==i?($(".sboWeekDays."+w).append("<div class='sboWeekDay "+w+"' style='width: "+s+"px';><p>"+F[V][H]+"</p></div>"),$(".sboWeekDays."+w).css("height","29px")):($(".sboWeekDays."+w).append("<div class='sboWeekDay "+w+"' style='width: "+s+"px';><p>"+F[V][H]+"</p><p class='sboWeekDayDate'>"+i.date()+" "+a[V][i.get("month")]+"</p></div>"),$(".sboWeekDays."+w).css("height","54px"),i.add(1,"days")),6==o&&(o=0);d=C-P,"yes"==c||"yesUpload"==c?($(".sboTemplate."+w).css({"background-image":"url("+b.backgroundUrl+")","background-size":"auto "+b.backgroundHeight+"px","background-position-x":b.backgroundX,"background-position-y":b.backgroundY}),$(".sboWeekDays."+w).css("background","rgba(255, 255, 255, 0.75)"),$(".sboHours."+w).css("background","rgba(255, 255, 255, 0.75)"),$(".sboDays."+w).css("background","none")):"yesColor"==c&&($(".sboTemplate."+w).css("background-color",b.backgroundColor),$(".sboWeekDays."+w).css("background","rgba(255, 255, 255, 0.75)"),$(".sboHours."+w).css("background","rgba(255, 255, 255, 0.75)"),$(".sboDays."+w).css("background","transparent")),$(".sboHours."+w).height(d*z-1),$(".sboDays."+w).height(d*z-1),p(),"yes"==n&&(r=75,$(".sboDay."+w).each(function(){$(".sboDayObject."+w).each(function(){var e=$(this).find(".sboObjectName").outerHeight(!0)+$(this).find(".sboObjectText").outerHeight(!0);"inline"==I&&(e+=$(this).find(".timeMarkInline").outerHeight(!0));var s=e/$(this).height(),a=Math.ceil(s*z);r<=a&&(r=a)})}),z!=r&&(z=r,$(".sboHours."+w).height(d*z-1),$(".sboDays."+w).height(d*z-1),p())),$(window).trigger("resize"),h()}function p(){for($(".sboHours."+w).html(""),$(".sboDay."+w).each(function(){$(this).html("")}),H=P;H<C;H++)$(".sboHours."+w).append("<div class='sboHour "+w+"' style='height: "+z+"px;'><div class='sboHourText "+w+"'><p class='sboPHour "+w+"'>"+J[S][H]+"</p></div></div>");for(H=0;H<7;H++){var e=0;for(N in R[H])R[H].hasOwnProperty(N)&&e++;for(W=0;W<e;W++){var s,a,o,t=parseInt(R[H][W].startTime),i=parseInt(R[H][W].endTime);0==i&&(i=1440);var r=0,n=0;for(N=t;N<i;N++)n++;for(n=(n*(z/60)+1).toFixed(4),N=60*P;N<t;N++)r++;var c=(r=(r*(z/60)-1).toFixed(4))+n,d=decodeURIComponent(R[H][W].objectName),b=decodeURIComponent(R[H][W].objectInfo);b=b.split("\n").join("<br />");var l=R[H][W].backgroundColor,p=R[H][W].textColor1,u=R[H][W].textColor2,h=parseInt(R[H][W].objectNumber);if(X<h&&(X=h),!(r<-1||q+5<c)){var g=t%60,m=(t-g)/60,M=i%60,y=(i-M)/60;o="military"==S?(s=J.military[U.indexOf(m)]+":"+B[G.indexOf(g)])+" - "+(a=J.military[U.indexOf(y)]+":"+B[G.indexOf(M)]):(s=L[U.indexOf(m)]+":"+B[G.indexOf(g)]+" "+Y[U.indexOf(m)])+" - "+(a=L[U.indexOf(y)]+":"+B[G.indexOf(M)]+" "+Y[U.indexOf(y)]);var v,k=0;for(N=0;N<e;N++){var f=parseInt(R[H][N].startTime),D=parseInt(R[H][N].endTime),x=R[H][N].objectNumber;if(D<=t||i<=f||h==x||(k++,$("."+x+"."+w).is(":visible")&&(v=x)),"corners"==I&&h!=x){var O=$("."+x+"."+w).find(".timeMarkTop").html();s==$("."+x+"."+w).find(".timeMarkBottom").html()?E.push(h):a==O&&E.push(x)}}var T="";T=0==k?"<div class='sboDayObject "+h+" "+w+"' style='height: "+n+"px; top: "+r+"px; background-color: "+l+";'><div class='sboObjectPContainer "+w+"'><p class='sboObjectName "+w+"' style='color: "+p+";'>"+d+"</p><p class='sboObjectText "+w+"' style='color: "+u+";'>"+b+"</p></div></div>":$("."+v).is(":visible")&&parseInt($("."+v)[0].style.width)<100&&""==$("."+v)[0].style.left?"<div class='sboDayObject "+h+" "+w+"' style='width: 50%; left: 50%; height: "+n+"px; top: "+r+"px; background-color: "+l+"; border-left: 1px solid;'><div class='sboObjectPContainer "+w+"'><p class='sboObjectName "+w+"' style='color: "+p+";'>"+d+"</p><p class='sboObjectText "+w+"' style='color: "+u+";'>"+b+"</p></div></div>":"<div class='sboDayObject "+h+" "+w+"' style='width: 50%; height: "+n+"px; top: "+r+"px; background-color: "+l+";'><div class='sboObjectPContainer "+w+"'><p class='sboObjectName "+w+"' style='color: "+p+";'>"+d+"</p><p class='sboObjectText "+w+"' style='color: "+u+";'>"+b+"</p></div></div>",s="<span class='timeMarkTop timeMarkTop"+h+" "+w+"'>"+s+"</span>",a="<span class='timeMarkBottom timeMarkBottom"+h+" "+w+"'>"+a+"</span>",o="<span class='timeMarkInline timeMarkInline"+h+" "+w+"'>"+o+"</span>";var A="."+F[V][H]+"."+w;$(A).append(T);var j="."+h+".sboDayObject."+w;$(j).append(s),$(j).append(a),$(j).find(".sboObjectPContainer").append(o)}}}X++,function(){for("corners"==I||"yes"==I?$(".timeMarkTop ."+w+", .timeMarkBottom."+w).each(function(){$(this).css("display","block")}):($(".timeMarkTop ."+w+", .timeMarkBottom."+w).each(function(){$(this).css("display","none")}),$(".timeMarkInline."+w).each(function(){$(this).css("display","block")})),H=0;H<E.length;H++)$(".timeMarkTop"+E[H]+"."+w).hide()}(),"none"!=$(".sboTemplate."+w).css("background-image")?$(".sboDayObject."+w).each(function(){var e=$(this).css("background-color");-1<!e.indexOf("rgba")&&-1<!e.indexOf("0.75")&&(e=e.replace(")",", 0.75)").replace("rgb","rgba"),$(this).css("background-color",e))}):$(".sboDayObject."+w).each(function(){var e=$(this).css("background-color");e=e.replace(",0.75","").replace("rgba","rgb"),$(this).css("background-color",e)})}var u=[];function h(){0<u.length&&$.getScript("https://schedulebuilder.org/schedules/"+u[0]+".js").done(function(e,s){var a=$(".sboTemplate."+u[0]).attr("class").split(" ");u.splice(0,1),w=a[1],b=dbSchedule,R=dbObjects,X=0,E=[],o=b.startDay,t=b.endDay,"0"!=(i=b.startDate)&&(i=moment(i.substring(0,10),"YYYY-MM-DD")),P=parseInt(b.startTime),C=parseInt(b.endTime),z=75,S=b.timeFormat,I=b.timeMarks,n=b.autoResize,c=b.useBackground,V=a[2],d=0,"null",$(".sboTemplate."+w).append('<div class="sboWeekDays '+w+'"><div class="leftScheduleCorner '+w+'"></div></div><div class="sboHours '+w+'" style="height: 599px;"><div class="startTimeMarker '+w+'"></div><div class="endTimeMarker '+w+'"></div></div><div class="sboDays '+w+'" style="height: 599px;"></div>'),l()})}$(".sboTemplate").each(function(){var e=$(this).attr("class").split(" ");w=e[1],u.push(w)}).promise().done(function(){h()});var e=0;$(window).resize(function(){$(".sboTemplate").each(function(){$(this).parent().width()<893?(e=$(this).parent().width()/893,$(this).css({transform:"scale("+e+")"}),$(this).parent().height($(this).height()*e)):$(this).css({transform:"none"})})}),$(".sboToggle").click(function(){$(this).parent().hasClass("sboToggled")?($(this).parent().removeClass("sboToggled",1e3,function(){$(this).parent().height($(this).height()*e)}),$(this).html("Click to collapse ▲")):($(this).parent().addClass("sboToggled",1e3,function(){$(this).parent().height($(this).height()*e)}),$(this).html("Click to expand ▼"),$("html,body").animate({scrollTop:$($(this).parent()).offset().top-100},"slow"))})}); -
schedule-builder-online/trunk/readme.txt
r1927285 r1981557 5 5 Tested up to: 4.9.8 6 6 Requires PHP: 5.2.4 7 Stable tag: 1.0 7 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
schedule-builder-online/trunk/schedule-builder-online.php
r1924298 r1981557 3 3 * Plugin Name: Schedule Builder Online 4 4 * Description: Easily embed schedules created with our free schedule maker to posts and pages. 5 * Version: 1.0. 05 * Version: 1.0.1 6 6 * Author: Henrik Sandström 7 7 * Author URI: https://schedulebuilder.org … … 248 248 wp_enqueue_script( 'schedulebuilderonline-jquery-ui', 'https://code.jquery.com/ui/1.12.1/jquery-ui.min.js' ); 249 249 wp_enqueue_script( 'schedulebuilderonline-moment', 'https://cdn.jsdelivr.net/npm/moment/min/moment.min.js' ); 250 wp_enqueue_script( 'schedulebuilderonline-main', SCHEDULEBUILDERONLINE_URL. '/public/js/main. js' );251 wp_enqueue_style( 'schedulebuilderonline-style', SCHEDULEBUILDERONLINE_URL. '/public/css/style. css' );250 wp_enqueue_script( 'schedulebuilderonline-main', SCHEDULEBUILDERONLINE_URL. '/public/js/main.min.js' ); 251 wp_enqueue_style( 'schedulebuilderonline-style', SCHEDULEBUILDERONLINE_URL. '/public/css/style.min.css' ); 252 252 253 253 $langLinks = array(
Note: See TracChangeset
for help on using the changeset viewer.