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 — * autofill libraryId by libraryName · DevforAndroid/AboutLibraries@81d50eb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • DEV/definition-file-builder
    • index.html
    • js
      • nlform.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
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,16 @@ <h1>AboutLibrary definition-file builder<span>by Mike Penz</span></h1>
9696
<!-- /container -->
9797
<script src="js/nlform.js"></script>
9898
<script>
99-
var nlform = new NLForm( document.getElementById( 'nl-form' ) );
100-
99+
var nlform = new NLForm( document.getElementById( 'nl-form' ) );
101100

101+
document.getElementsByName("libraryName_dialog")[0].addEventListener('input', function()
102+
{
103+
if(document.getElementsByName("libraryId_dialog")[0].value == "") {
104+
var libraryNameId = fixString(document.getElementsByName("libraryName_dialog")[0].value).toLowerCase().replace(/ /g, '');
105+
document.getElementsByName("libraryId_text")[0].innerHTML = libraryNameId;
106+
document.getElementsByName("libraryId")[0].value = libraryNameId;
107+
}
108+
});
102109
</script>
103110
</body>
104111
</html>
Collapse file

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

Copy file name to clipboardExpand all lines: DEV/definition-file-builder/js/nlform.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@
9292
this.fld = document.createElement( 'div' );
9393
this.fld.className = 'nl-field nl-ti-text';
9494
this.toggle = document.createElement( 'a' );
95+
this.toggle.setAttribute( 'name', this.elOriginal.getAttribute('name') + "_text" );
9596
this.toggle.innerHTML = this.elOriginal.getAttribute( 'placeholder' );
9697
this.toggle.className = 'nl-field-toggle';
9798
this.optionsList = document.createElement( 'ul' );
9899
this.getinput = document.createElement( 'input' );
100+
this.getinput.setAttribute( 'name', this.elOriginal.getAttribute('name') + "_dialog" );
99101
this.getinput.setAttribute( 'type', 'text' );
100102
this.getinput.setAttribute( 'placeholder', this.elOriginal.getAttribute( 'placeholder' ) );
101103
this.getinputWrapper = document.createElement( 'li' );

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.