Move besUrl out of source-controlled code
This commit is contained in:
parent
780bc25da6
commit
35c518e0e0
@ -19,10 +19,14 @@ Primer:
|
|||||||
<head>
|
<head>
|
||||||
...
|
...
|
||||||
<link rel="stylesheet" href="styles.css" />
|
<link rel="stylesheet" href="styles.css" />
|
||||||
|
<script>const besUrl = 'http://localhost:225/api/v2/check';</script>
|
||||||
<script src="service.js"></script>
|
<script src="service.js"></script>
|
||||||
</head>
|
</head>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Poti do datotek `styles.css` in `service.js` prilagodimo glede na imenik, kjer hranimo ta repozitorij.
|
||||||
|
Spremenljivko `besUrl` nastavimo po navodilih Amebisa.
|
||||||
|
|
||||||
### 2. V kodo HTML vstavimo servis
|
### 2. V kodo HTML vstavimo servis
|
||||||
|
|
||||||
Primer:
|
Primer:
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
<title>CKEditor 5 Example</title>
|
<title>CKEditor 5 Example</title>
|
||||||
<link rel="stylesheet" href="styles.css" />
|
<link rel="stylesheet" href="styles.css" />
|
||||||
<script src="https://cdn.ckeditor.com/ckeditor5/41.1.0/classic/ckeditor.js"></script>
|
<script src="https://cdn.ckeditor.com/ckeditor5/41.1.0/classic/ckeditor.js"></script>
|
||||||
|
<script>const besUrl = 'http://localhost:225/api/v2/check';</script>
|
||||||
<script src="service.js"></script>
|
<script src="service.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>BesService Example</title>
|
<title>BesService Example</title>
|
||||||
<link rel="stylesheet" href="styles.css" />
|
<link rel="stylesheet" href="styles.css" />
|
||||||
|
<script>const besUrl = 'http://localhost:225/api/v2/check';</script>
|
||||||
<script src="service.js"></script>
|
<script src="service.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
const besUrl = 'http://localhost:225/api/v2/check'
|
|
||||||
|
|
||||||
let besServices = [] // Collection of all grammar checking services in the document
|
let besServices = [] // Collection of all grammar checking services in the document
|
||||||
|
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user