GithubHelp home page GithubHelp logo

codrops / naturallanguageform Goto Github PK

View Code? Open in Web Editor NEW
303.0 18.0 96.0 30 KB

An experimental form that uses natural language instead of the usual form layout. Values are entered using custom input elements.

CSS 43.89% HTML 13.84% JavaScript 42.27%

naturallanguageform's Introduction

naturallanguageform's People

Contributors

andreiguzga avatar botelho avatar hugoheneault avatar o-jordan avatar raabbajam avatar stoleru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

naturallanguageform's Issues

[enhancement] Add missing bower.json.

Hey, maintainer(s) of codrops/NaturalLanguageForm!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library codrops/NaturalLanguageForm is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "codrops/NaturalLanguageForm",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

Password inputs

How about to convert password inputs values to "******"? What should I do for this enhancement?

Support default values (or programatic population of values) on input fields

Right now this script just takes the input placeholder by default, even if the input has value="" set to something.

I changed:
this.toggle.innerHTML = this.elOriginal.getAttribute( 'placeholder' );

to:
this.toggle.innerHTML = this.elOriginal.value.trim() !== '' ? this.elOriginal.value : this.elOriginal.getAttribute( 'placeholder' );

Users find it confusing

I have done some random user testing and 4/10 of them did not hit the arrow icon after typing into an input and just presumed that it was filled in and done.

They don't want to have to click more buttons that necessary.

Is it possible for the input to set when the user clicks away onto another element rather than having to click the arrow?

Hope this makes sense!

inputs encapsulated in divs

Hi, got a problem :)

Tried to implement it, but my design forces me to use divs to encapsulate some of the inputs / options. The problem is that the overlay will not work if another parent exists - mainly because it will not show eg, the css selector ~ works for selectors within same parents, and selecting a parent is only available in CSS4.

So in _open and _close

I have added after
this.fld.className += ' nl-field-open';
this.fld.parentNode.className += ' nl-overlay-open'; so that I can make the css work for the overlay.

Also on _close

this.fld.className = this.fld.className.replace(/\b nl-field-open\b/,''); this.fld.parentNode.className = this.fld.className.replace(/\b nl-overlay-open\b/,'');

Now it works, but I still have a problem, that when I click the overlay to close it, my other classes on the encapsulated divs are deleted.
Tried to change ALL the className with replace before and += after, still not working.

Any ideas? :)

InvalidStateError on input type=File

On upload file i got below error

nlform.js:167
Uncaught InvalidStateError: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.