智慧园区前端大屏
linwe
2025-05-23 d2e2df7c4805cc9c5e4e915202f304e0e9a53758
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
<!--
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-11-09 15:41:35
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2025-01-20 18:33:59
 * @FilePath: \bigScreen\src\views\pd\components\dynamicPanel.vue
 * @Description: 
 * 
 * Copyright (c) 2024 by shuishen, All Rights Reserved. 
-->
<script setup>
const { VITE_APP_BASE } = import.meta.env
 
const emit = defineEmits(['closePanel'])
import { onUnmounted } from 'vue'
 
let lineTime = null
let timeOne = null
let timeTwo = null
let timeThree = null
let timeFour = null
let timeFive = null
let timeSix = null
 
const panelData = reactive({
  data: [
    {
      key: 1,
      title: '典型案例1',
      content: '化工集中区企业储罐区泄漏事件: 化工集中区某企业甲苯储罐阀门破损,如不采取措施,将造成污染事故,影响到抚河下游水质。',
 
      oneCentent: '2024年X月X日X时,化工集中区某企业甲苯储罐阀门破损,如不采取措施,将造成污染事故,影响到抚河下游水质',
      onePointPosition: {
        lng: 116.267710,
        lat: 28.035097,
        ele: 43
      },
      onetime: 0,
 
      twoContent: '企业立即切断雨水排口与园区雨水管网的连接,防止污染进一步扩大;同时将已流失有机农药导入企业事故应急池,后通过槽罐车运往污水处理厂或委托有资质单位进行处置。',
      twoPointPosition: {
        lng: 116.26828434,
        lat: 28.03483709,
        ele: 44
      },
      twotime: 5000,
 
      lineCenter: {
        lng: 116.26874426,
        lat: 28.03448151
      },
      linePosition: '116.26858421,28.03438206,50;116.26890074,28.03457406,50',
      lineTime: 5000,
 
      threeContent: '企业采取紧急措施后,还有部分污染水体进入场外雨水管网。',
      threePointPosition: {
        lng: 116.26874426,
        lat: 28.03448151,
        ele: 50
      },
      threetime: 15000,
 
      fourContent: '关闭园区内河应急闸坝。',
      fourPointPosition: {
        lng: 116.291116,
        lat: 28.017042,
        ele: 31.2
      },
      fourtime: 15000,
 
      fiveContent: '联系水利部门关闭园区外山下排水闸,杜绝污水流入抚河。',
      fivePointPosition: {
        lng: 116.314202,
        lat: 28.039083,
        ele: 30
      },
      fivetime: 20000,
 
      sixContent: '将园区内河蓄存的污水通过应急闸坝旁泵站导入抚北工业污水处理厂进行处置。',
      sixPointPosition: {
        lng: 116.29351363,
        lat: 28.01630391,
        ele: 37.2
      },
      sixtime: 25000,
 
      sevenContent: '流出园区外的污水由山外排水闸全部拦截,调集工程机械将蓄存的污水导入该应急空间;投放活性炭进行处置,处置完成经应急监测组检测达标后排放。',
      sevenPointPosition: {
        lng: 116.314941,
        lat: 28.038030,
        ele: 30
      },
      seventime: 30000
    },
 
    {
      key: 2,
      title: '典型案例2',
      content: '化工集中区企业储罐区泄漏事件: 添光钛业施工人员在硫磺库北面动土作业,把天然气输送管道挖断,天然气大量泄漏,引起爆炸,爆炸引起硫酸输送管道破损和着火,如不采取措施,将造成污染事故,影响到宜黄河及抚河水质。',
 
      oneCentent: '2024年X月X日X时,添光钛业施工人员在硫磺库北面动土作业,把天然气输送管道挖断,天然气大量泄漏,引起爆炸,爆炸引起硫酸输送管道破损和着火,如不采取措施,将造成污染事故,影响到宜黄河及抚河水质',
      onePointPosition: {
        lng: 116.28658339,
        lat: 27.99550926,
        ele: 52
      },
      onetime: 0,
 
      twoContent: '开启截流阀,利用企业应急池与雨水池蓄污。',
      twoPointPosition: {
        lng: 116.285503,
        lat: 27.995922,
        ele: 53
      },
      twotime: 5000,
 
      /* lineCenter: {
        lng: 116.26874426,
        lat: 28.03448151
      },
      linePosition: '116.26858421,28.03438206,50;116.26890074,28.03457406,50',
      lineTime: 5000, */
 
      threeContent: '利用临时转输设备将多余污水转输至东北方坑塘。',
      threePointPosition: {
        lng: 116.290782,
        lat: 27.996336,
        ele: 39
      },
      threetime: 15000,
 
      fourContent: '利用山下闸阻断园区污水外流。',
      fourPointPosition: {
        lng: 116.314202,
        lat: 28.039083,
        ele: 30
      },
      fourtime: 15000,
    },
    {
      key: 3,
      title: '典型案例3',
      content: '危险化学品泄露事故: 危化品停车场一辆硫酸槽罐车发生泄露,大量盐酸流至路面,如不采取措施,将造成污染事故,影响到赣江下游水质。',
 
      showModel: true,
 
 
      oneCentent: '2024年09月16日14时,危化品停车场一辆硫酸槽罐车发生泄露,大量盐酸流至路面。',
      onePointPosition: {
        lng: 115.10639803,
        lat: 27.27848014
      },
      onetime: 10000,
 
      twoContent: '立即关闭雨水闸阀。',
      twoPointPosition: {
        lng: 115.10665321,
        lat: 27.27720681
      },
      twotime: 13000,
 
      threeContent: '必要时调度金龙水库清水。',
      threePointPosition: {
        lng: 115.10488545,
        lat: 27.27678110
      },
      threetime: 13000,
 
      fourContent: '转输至江西粤鹏环保高新技术开发有限公司事故应急池。',
      fourPointPosition: {
        lng: 115.10499264,
        lat: 27.28048591
      },
      fourtime: 18000,
 
      fiveContent: '转输至江西腾龙源环保科技有限公司事故应急池。',
      fivePointPosition: {
        lng: 115.10332118,
        lat: 27.27831698
      },
      fivetime: 23000,
 
      sixContent: '根据应急监测方案,立即开展监测,确保污染废水未进入外界水体。',
      sixPointPosition: {
        lng: 115.10665321,
        lat: 27.27720681
      },
      sixtime: 28000,
    },
  ]
})
 
let dynamicVectorLayer = new DC.VectorLayer('dynamicVectorLayer').addTo(window.$viewer)
let dynamicHtmlLayer = new DC.HtmlLayer('dynamicHtmlLayer').addTo(window.$viewer)
let dynamicLineVectorLayer = new DC.VectorLayer('dynamicLineVectorLayer').addTo(window.$viewer)
 
let modelPosition = [
  {
    lng: 115.10640155,
    lat: 27.28121605
  },
  {
    lng: 115.10641953,
    lat: 27.28084006
  },
  {
    lng: 115.10641886,
    lat: 27.28026147
  },
  {
    lng: 115.10642486,
    lat: 27.27994712,
  },
  {
    lng: 115.10640964,
    lat: 27.27928393,
  },
  {
    lng: 115.10639803,
    lat: 27.27848014
  }
]
 
let positions = modelPosition.map(i => [i.lng, i.lat, i.ele || 64].join(',')).join(';')
let tc = new DC.TrackController(window.$viewer)
let track = new DC.Track(positions, 5)
track.setModel(VITE_APP_BASE + 'gltf/car.gltf', {
  show: true,
  scale: 0.0025,
  // nodeTransformations: {
  //   rotation: window.$Cesium.Quaternion.fromHeadingPitchRoll(window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0)),
  // }
})
 
tc.addTrack(track)
 
const synth = window.speechSynthesis
 
const speak = (msg, continueFun = () => { }) => {
  let u = new SpeechSynthesisUtterance()
  let voices = synth.getVoices()
  u.text = msg
  u.rate = 1.5
  let findObj = voices.some(voice => voice.lang == 'zh-CN')
 
  if (!findObj) {
    u.lang = 'zh-TW'
  }
 
  u.onend = () => {
    continueFun()
  }
  synth.speak(u)
}
 
const publicFun = (item) => {
  let fourCenter = DC.Position.fromObject(item.fourPointPosition)
  let fourCircle = new DC.Circle(fourCenter, 30)
  fourCircle.setStyle({
    material: new DC.CircleWaveMaterialProperty({
      color: DC.Color.fromRandom(),
      speed: 20,
      count: 5,
      gradient: 0.5
    })
  })
  dynamicVectorLayer.addOverlay(fourCircle)
 
  let fourContent = new DC.DivIcon(
    new DC.Position(item.fourPointPosition.lng, item.fourPointPosition.lat, item.fourPointPosition.ele),
    `<div class="dynamic-map-popup">
                  <div class="content-wrap">
                    <div class="content">
                      <p>${item.fourContent}</p>
                    </div>
                  </div>
                  <div class="arrow"></div>
                </div>`
  )
  dynamicHtmlLayer.addOverlay(fourContent)
 
  window.$viewer.flyToPosition(new DC.Position(item.fourPointPosition.lng, item.fourPointPosition.lat, 400, 0, -90, 0), () => {
    speak(item.fourContent, () => {
      let fiveCenter = DC.Position.fromObject(item.fivePointPosition)
      let fiveCircle = new DC.Circle(fiveCenter, 10)
      fiveCircle.setStyle({
        material: new DC.CircleWaveMaterialProperty({
          color: DC.Color.fromRandom(),
          speed: 20,
          count: 5,
          gradient: 0.5
        })
      })
      dynamicVectorLayer.addOverlay(fiveCircle)
 
      let fiveContent = new DC.DivIcon(
        new DC.Position(item.fivePointPosition.lng, item.fivePointPosition.lat, item.fivePointPosition.ele),
        `<div class="dynamic-event-profile-map-popup">
                      <div class="content-wrap">
                        <div class="content">
                          <p>${item.fiveContent}</p>
                        </div>
                      </div>
                      <div class="arrow"></div>
                    </div>`
      )
      dynamicHtmlLayer.addOverlay(fiveContent)
      // 执行对应的事件函数
      window.$viewer.flyToPosition(new DC.Position(item.fivePointPosition.lng, item.fivePointPosition.lat, 400, 0, -90, 0), () => {
        speak(item.fiveContent, () => {
          if (item.sixPointPosition) {
            let sixCenter = DC.Position.fromObject(item.sixPointPosition)
            let sixCircle = new DC.Circle(sixCenter, 10)
            sixCircle.setStyle({
              material: new DC.CircleWaveMaterialProperty({
                color: DC.Color.fromRandom(),
                speed: 20,
                count: 5,
                gradient: 0.5
              })
            })
            dynamicVectorLayer.addOverlay(sixCircle)
 
            let sixContent = new DC.DivIcon(
              new DC.Position(item.sixPointPosition.lng, item.sixPointPosition.lat, item.sixPointPosition.ele),
              `<div class="dynamic-map-popup">
                              <div class="content-wrap">
                                <div class="content">
                                  <p>${item.sixContent}</p>
                                </div>
                              </div>
                              <div class="arrow"></div>
                          </div>`
            )
            dynamicHtmlLayer.addOverlay(sixContent)
            // 执行对应的事件函数
            window.$viewer.flyToPosition(new DC.Position(item.sixPointPosition.lng, item.sixPointPosition.lat, 400, 0, -90, 0), () => {
              speak(item.sixContent, () => {
                if (item.sevenPointPosition) {
                  let sevenCenter = DC.Position.fromObject(item.sevenPointPosition)
                  let sevenCircle = new DC.Circle(sevenCenter, 10)
                  sevenCircle.setStyle({
                    material: new DC.CircleWaveMaterialProperty({
                      color: DC.Color.fromRandom(),
                      speed: 20,
                      count: 5,
                      gradient: 0.5
                    })
                  })
                  dynamicVectorLayer.addOverlay(sevenCircle)
 
                  let sevenContent = new DC.DivIcon(
                    new DC.Position(item.sevenPointPosition.lng, item.sevenPointPosition.lat, 70),
                    `<div class="dynamic-event-profile-map-popup">
                              <div class="content-wrap">
                                <div class="content">
                                  <p>${item.sevenContent}</p>
                                </div>
                              </div>
                              <div class="arrow"></div>
                          </div>`
                  )
                  dynamicHtmlLayer.addOverlay(sevenContent)
                  // 执行对应的事件函数
                  window.$viewer.flyToPosition(new DC.Position(item.sevenPointPosition.lng, item.sevenPointPosition.lat, 400, 0, -90, 0), () => {
                    speak(item.sevenContent)
                  }, 3)
                }
              })
            }, 3)
          }
        })
      }, 3)
    })
  }, 3)
}
 
const twoFun = (item, cb = () => { }) => {
  let twoCenter = DC.Position.fromObject(item.twoPointPosition)
  let twoCircle = new DC.Circle(twoCenter, 10)
  twoCircle.setStyle({
    material: new DC.CircleWaveMaterialProperty({
      color: DC.Color.fromRandom(),
      speed: 20,
      count: 5,
      gradient: 0.5
    })
  })
  dynamicVectorLayer.addOverlay(twoCircle)
 
  let twoContent = new DC.DivIcon(
    new DC.Position(item.twoPointPosition.lng, item.twoPointPosition.lat, item.twoPointPosition.ele),
    `<div class="dynamic-event-profile-map-popup">
          <div class="content-wrap">
            <div class="content">
              <p>${item.twoContent}</p>
              </div>
              </div>
              <div class="arrow"></div>
              </div>`
    // <p>特征污染物:${item.specificPollutant}</p>
  )
  dynamicHtmlLayer.addOverlay(twoContent)
  // 执行对应的事件函数
  window.$viewer.flyToPosition(new DC.Position(item.twoPointPosition.lng, item.twoPointPosition.lat, 400, 0, -90, 0), () => {
    speak(item.twoContent, () => {
      cb()
    })
  }, 3)
}
 
const createLinePath = (item, cb = () => { }) => {
  if (item.linePosition) {
    let polyline = new DC.Polyline(item.linePosition)
    polyline.setStyle({
      width: 20,
      material: new DC.PolylineImageTrailMaterialProperty({
        color: DC.Color.RED,
        speed: 20,
        image: VITE_APP_BASE + 'img/mapicon/right.png',
        repeat: { x: 5, y: 1 }
      }),
      clampToGround: false
    })
 
    dynamicLineVectorLayer.addOverlay(polyline)
  } else {
    let threeCenter = DC.Position.fromObject(item.threePointPosition)
    let threeCircle = new DC.Circle(threeCenter, 30)
    threeCircle.setStyle({
      material: new DC.CircleWaveMaterialProperty({
        color: DC.Color.fromRandom(),
        speed: 20,
        count: 5,
        gradient: 0.5
      })
    })
    dynamicVectorLayer.addOverlay(threeCircle)
  }
 
  let threeContent = new DC.DivIcon(
    new DC.Position(item.threePointPosition.lng, item.threePointPosition.lat, item.threePointPosition.ele),
    `<div class="dynamic-event-profile-map-popup">
          <div class="content-wrap">
            <div class="content">
              <p>${item.threeContent}</p>
              </div>
              </div>
              <div class="arrow"></div>
              </div>`
    // <p>特征污染物:${item.specificPollutant}</p>
  )
  dynamicHtmlLayer.addOverlay(threeContent)
  // 执行对应的事件函数
 
  window.$viewer.flyToPosition(new DC.Position(item.threePointPosition.lng, item.threePointPosition.lat, 400, 0, -90, 0), () => {
    speak(item.threeContent, () => {
      cb()
    })
  }, 3)
}
 
const schemeStart = (item) => {
  emit('closePanel')
  clearAll()
 
  if (item.showModel) {
    window.$viewer.flyToPosition("115.10587903,27.28374884,400,0,-90", () => {
      track.setModel(VITE_APP_BASE + 'gltf/car.gltf', {
        show: true,
        scale: 0.0025,
        // nodeTransformations: {
        //   rotation: window.$Cesium.Quaternion.fromHeadingPitchRoll(window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0)),
        // }
      })
 
      tc.play()
      tc.viewTrack(track, {
        mode: '2',
        pitch: -45,
        range: 400
      })
    })
  }
 
  timeOne = setTimeout(() => {
    function oneLoad () {
      let oneCenter = DC.Position.fromObject(item.onePointPosition)
      let oneCircle = new DC.Circle(oneCenter, 20)
      oneCircle.setStyle({
        material: new DC.CircleWaveMaterialProperty({
          color: DC.Color.RED.withAlpha(0.9),
          speed: 20,
          count: 5,
          gradient: 0.5
        })
      })
      dynamicVectorLayer.addOverlay(oneCircle)
 
      let oneCentent = new DC.DivIcon(
        new DC.Position(item.onePointPosition.lng, item.onePointPosition.lat, item.onePointPosition.ele),
        `<div class="dynamic-map-popup">
          <div class="content-wrap">
            <div class="content">
              <p>${item.oneCentent}</p>
              </div>
              </div>
              <div class="arrow"></div>
              </div>`
        // <p>特征污染物:${item.specificPollutant}</p>
      )
      dynamicHtmlLayer.addOverlay(oneCentent)
 
      speak(item.oneCentent, () => {
        if (item.key == 2) {
          twoFun(item, () => {
            createLinePath(item, () => {
              publicFun(item)
            })
          })
        } else if (item.key == 1) {
          twoFun(item, () => {
            createLinePath(item, () => {
              publicFun(item)
            })
          })
        } else {
          twoFun(item, () => {
            createLinePath(item, () => {
              publicFun(item)
            })
          })
        }
      })
    }
    if (item.showModel) {
      oneLoad()
    } else {
      window.$viewer.flyToPosition(new DC.Position(item.onePointPosition.lng, item.onePointPosition.lat, 400, 0, -90, 0), () => {
        oneLoad()
      }, 3)
    }
  }, item.onetime)
}
 
const clearAll = () => {
  window.speechSynthesis.cancel()
 
  lineTime && (clearTimeout(lineTime), lineTime = null)
  timeOne && (clearTimeout(timeOne), timeOne = null)
  timeTwo && (clearTimeout(timeTwo), timeTwo = null)
  timeThree && (clearTimeout(timeThree), timeThree = null)
  timeFour && (clearTimeout(timeFour), timeFour = null)
  timeFive && (clearTimeout(timeFive), timeFive = null)
  timeSix && (clearTimeout(timeSix), timeSix = null)
 
  track.setModel(VITE_APP_BASE + 'gltf/car.gltf', {
    show: false,
    scale: 0.0025,
    // nodeTransformations: {
    //   rotation: window.$Cesium.Quaternion.fromHeadingPitchRoll(window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0)),
    // }
  })
 
  dynamicVectorLayer.clear()
  dynamicHtmlLayer.clear()
  dynamicLineVectorLayer.clear()
}
 
onUnmounted(() => {
  clearAll()
 
  tc.clear()
  dynamicVectorLayer && window.$viewer && window.$viewer.removeLayer(dynamicVectorLayer)
  dynamicHtmlLayer && window.$viewer && window.$viewer.removeLayer(dynamicHtmlLayer)
  dynamicLineVectorLayer && window.$viewer && window.$viewer.removeLayer(dynamicLineVectorLayer)
 
  tc = null
  track = null
  dynamicVectorLayer = null
  dynamicHtmlLayer = null
  dynamicLineVectorLayer = null
})
</script>
 
<template>
  <div class="panel-container no-select">
    <el-carousel :autoplay="false" :interval="4000" type="card" height="360px">
      <el-carousel-item v-for="item, index in panelData.data" :key="index">
        <template #>
          <div class="content-box flex f-d-c">
            <div class="title">
              {{ item.title }}
            </div>
            <div class="content h0 flex-1">
              <div class="bg-box">
 
              </div>
 
              <div class="describe-box">
                {{ item.content }}
              </div>
            </div>
 
            <div class="footer-btn">
              <div class="start-btn" @click="schemeStart(item)">
                开始模拟
              </div>
            </div>
          </div>
        </template>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
 
<style scoped lang="scss">
.panel-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 960px;
  height: 440px;
  pointer-events: all;
 
  ::v-deep(.el-carousel) {
    .el-carousel__item {
      background: #2E4274;
 
      .content-box {
        padding: 10px 0;
        width: 100%;
        height: 100%;
        color: #fff;
 
        .title {
          padding-left: 40px;
          height: 80px;
          line-height: 80px;
          font-size: 44px;
          font-weight: bold;
          font-style: initial;
          background: #3a7bd5;
          /* fallback for old browsers */
          background: -webkit-linear-gradient(to right, #3a7bd5, rgba(255, 255, 255, 0.1));
          /* Chrome 10-25, Safari 5.1-6 */
          background: linear-gradient(to right, #3a7bd5, rgba(255, 255, 255, 0.1));
          /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
        }
 
        .content {
          margin-top: 20px;
          padding: 0 20px;
 
          .describe-box {
            line-height: 36px;
          }
        }
 
        .footer-btn {
          margin-bottom: 40px;
          height: 40px;
          line-height: 40px;
          text-align: center;
        }
      }
    }
  }
}
 
.no-select {
  user-select: none;
  /* Standard syntax */
  -webkit-user-select: none;
  /* Safari/Chrome */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
}
 
.start-btn,
.start-btn:focus,
.start-btn:hover {
  display: inline-block;
  position: relative;
  min-width: 96px;
  border: none;
  border-radius: 8px;
  background: #491cc5;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to bottom, #491cc5, #5f80f5);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to bottom, #491cc5, #5f80f5);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
 
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: transform ease-in 0.1s, box-shadow ease-in 0.25s;
  transform: skewX(8deg);
}
 
.start-btn:before,
.start-btn:after {
  content: "";
  display: block;
  position: absolute;
  width: 140%;
  height: 100%;
  left: -20%;
  z-index: -1000;
  transition: all ease-in-out 0.5s;
  background-repeat: no-repeat;
}
 
.start-btn:before {
  display: none;
  top: -75%;
  background-image: radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, transparent 20%, #3E56B2 20%, transparent 30%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, transparent 10%, #3E56B2 15%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%);
  background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
}
 
.start-btn:after {
  display: none;
  bottom: -75%;
  background-image: radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, transparent 10%, #3E56B2 15%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%);
  background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 10% 10%, 20% 20%;
}
 
.start-btn:active {
  transform: scale(0.9);
  background-color: #5e7ae9;
  box-shadow: 0 2px 25px rgba(94, 122, 233, .2);
}
 
.start-btn:active:before {
  display: block;
  animation: anim-top ease-in-out 0.75s forwards;
}
 
.start-btn:active:after {
  display: block;
  animation: anim-bottom ease-in-out 0.75s forwards;
}
 
@keyframes anim-top {
  0% {
    background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
  }
 
  50% {
    background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
  }
 
  100% {
    background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}
 
@keyframes anim-bottom {
  0% {
    background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
  }
 
  50% {
    background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
  }
 
  100% {
    background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}
</style>