GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — * improve libraryId generation of the http://def-builder.mikepenz.com/ · Goooler/AboutLibraries@f69538d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • DEV/definition-file-builder
    • index.html
    • js
      • custom.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎DEV/definition-file-builder/index.html‎

Copy file name to clipboardExpand all lines: DEV/definition-file-builder/index.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h1>AboutLibrary definition-file builder<span>by Mike Penz</span></h1>
101101
document.getElementsByName("libraryName_dialog")[0].addEventListener('input', function()
102102
{
103103
if(document.getElementsByName("libraryId_dialog")[0].value == "") {
104-
var libraryNameId = fixString(document.getElementsByName("libraryName_dialog")[0].value).toLowerCase().replace(/ /g, '');
104+
var libraryNameId = fixString(document.getElementsByName("libraryName_dialog")[0].value).toLowerCase().replace(/ /g, '').replace(/-/g, '_');
105105
document.getElementsByName("libraryId_text")[0].innerHTML = libraryNameId;
106106
document.getElementsByName("libraryId")[0].value = libraryNameId;
107107
}
Collapse file

‎DEV/definition-file-builder/js/custom.js‎

Copy file name to clipboardExpand all lines: DEV/definition-file-builder/js/custom.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function downloadIt() {
2-
var libraryId = fixString(document.getElementsByName("libraryId")[0].value).toLowerCase().replace(/ /g, '');
2+
var libraryId = fixString(document.getElementsByName("libraryId")[0].value).toLowerCase().replace(/ /g, '').replace(/-/g, '_');
33
var xmlFile = generateXmlFile();
44

55
if(xmlFile != "") {
@@ -19,7 +19,7 @@ function doSomeMagic() {
1919
}
2020

2121
function generateXmlFile() {
22-
var libraryId = fixString(document.getElementsByName("libraryId")[0].value).toLowerCase().replace(/ /g, '');
22+
var libraryId = fixString(document.getElementsByName("libraryId")[0].value).toLowerCase().replace(/ /g, '').replace(/-/g, '_');
2323

2424
var e = document.getElementsByName("isInternal")[0];
2525
var isInternal = e.options[e.selectedIndex].value;

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.