-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
21 lines (19 loc) · 891 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* this function adds a ticko request button on customer website */
function start(){
var body = document.querySelector('body')
var request_button = document.createElement('a')
request_button.innerHTML = "<button id='created_button' >Raise a ticket</button>"
request_button.setAttribute('href','https://ticko.netlify.app/ticket_page')
body.append(request_button)
var created_button = document.getElementById('created_button')
created_button.style.border = 'none';
created_button.style.position = 'absolute';
created_button.style.borderRadius = '30px';
created_button.style.bottom = '30px';
created_button.style.right = '30px';
created_button.style.backgroundColor = 'blue';
created_button.style.padding = '20px';
created_button.style.color = 'white';
created_button.style.fontSize = '20px'
}
window.addEventListener('load',start)