forked from AaronJacobs/Hackaton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
32 lines (26 loc) · 1.39 KB
/
main.js
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
var content = $('#content');
const appendText = '<div id="focusText">Focus on your dream!</div>';
// const cssSlider = `<div id="homepage-slider" class="st-slider">
// <input type="radio" class="cs_anchor radio" name="slider" id="slide1"/>
// <input type="radio" class="cs_anchor radio" name="slider" id="slide2"/>
// <input type="radio" class="cs_anchor radio" name="slider" id="play1" checked=""/>
// <div class="images">
// <div class="images-inner">
// <div class="image-slide">
// <img class="image" src="https://upload.wikimedia.org/wikipedia/commons/3/36/Software_Developer_at_work_03.jpg" alt="Focus on your dream!" />
// </div>
// <div class="image-slide">
// <img class="image" src="https://upload.wikimedia.org/wikipedia/commons/6/62/Makapu%CA%BBu_Beach.JPG" alt="Spend time here!" />
// </div>
// </div>
// </div>
// <div class="labels">
// <div class="fake-radio">
// <label for="slide1" class="radio-btn"></label>
// <label for="slide2" class="radio-btn"></label>
// </div>
// </div>`
const appendImage = '<img id="displayImage" src="https://upload.wikimedia.org/wikipedia/commons/3/36/Software_Developer_at_work_03.jpg" alt="Focus on your dream!" />'
content.replaceWith('<div id="newSection"></div>');
$('#newSection').prepend(appendText);
$('#focusText').after(appendImage);