Move besUrl out of source-controlled code

This commit is contained in:
Simon Rozman 2024-04-02 10:09:36 +02:00
parent 780bc25da6
commit 35c518e0e0
4 changed files with 6 additions and 2 deletions

View File

@ -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:

View File

@ -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>

View File

@ -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>

View File

@ -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
/// ///