Skip to content

Commit

Permalink
Rebuild 2.0.0-WIP and move pages into build folder for easy deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
petarov committed Apr 28, 2024
1 parent 192c0e8 commit e16f84b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
File renamed without changes
4 changes: 2 additions & 2 deletions docs/index.html → build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ <h2 class="subtitle">

</section>

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/build/translitbg.js"></script>
<script type="text/javascript" src="./translitbg.js"></script>
<script>
(function(w) {
document.getElementById("translit").addEventListener("click", function() {
document.getElementById("output").value = translitbg.go(document.getElementById("input").value);
document.getElementById("output").value = translitbg(document.getElementById("input").value);
});
document.getElementById("clear").addEventListener("click", function() {
document.getElementById("input").value = "";
Expand Down
9 changes: 4 additions & 5 deletions build/translitbg.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "translitbg",
"version": "1.3.1",
"version": "2.0.0",
"description": "Bulgarian to Latin transliteration (Транслитерация на български с латински букви)",
"main": "src/translitbg.js",
"directories": {
Expand Down
3 changes: 0 additions & 3 deletions test/test-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ describe('All tests', function () {
});

it('test специални случаи', function () {
assert.equal(translitbg('Стара планина'), 'Stara planina');
assert.equal(translitbg('Атанасовско езеро'), 'Atanasovsko ezero');
assert.equal(translitbg('Централен Балкан'), 'Tsentralen Balkan');
assert.equal(translitbg('ЖЕЗЪЛ'), 'ZHEZAL');
assert.equal(translitbg('жЕЗЪЛ'), 'zhEZAL');
assert.equal(translitbg('жезъл'), 'zhezal');
Expand Down

0 comments on commit e16f84b

Please sign in to comment.