Code Monkey home page Code Monkey logo

uilang's People

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

uilang's Issues

Add git tag

Hello @bendc ,
I am the member of cdnjs project.
We want to host this library.
Please help us add git tag.
Git tag can help us to know your release version.
Thanks for your help!

cdnjs/cdnjs#7815

Be explicit about code tag location in docs

Since it looks like #4 won't be "fixed" the documentation could be more explicit about the location of the code tag. It currently says:

uilang.js can be inserted anywhere, but it’s recommended to have the code element containing your uilang code at the very end of the page, just before the closing body tag. Don’t worry about having other code elements on the page, the script will only execute the uilang one.

If the uilang instructions are not in the last code tag things will not work. Here is an example to illustrate the scenario:

https://gist.github.com/max/27ef84f5200bc19ad134

Use <script> tag instead of <code>

The <code> tag is meant to be used to indicate a piece of code that is to be rendered by the browser. For code that will be executed a <script> tag should be used with an appropriate type attribute.

Maybe something like this?

<script type="text/uilang">
    clicking on ".hide" adds class "hidden" on "div"
</script>

Is there a way to re initialise ui lang?

I have a page load effect using smooth state js, and this loads the page in with Ajax (I think). This breaks UI Lang, but smooth state has a callback to initialise other script after its done its thing.

Fix issues in code samples

Hey there,

First off, I love the idea behind the language and the website itself. I’m sure uilang will be extremely useful for designers who want to add simple interaction to websites they’re working on.

TL;DR: Could you please update the "animated switch" code sample to utilise native HTML controls while still maintaining the behavior layer using uilang?

Disclaimer: as beginners seem to be the primary target of the tool, I think it’s important to share only best practices in code samples. Any problems there could be shared across the web: we all remember the case of outline: 0; in Eric Meyer’s reset.css or user-scalable=no in early meta viewport snippets.

I would be happy to implement an improved version, but code samples aren’t part of this repository.

Cheers and keep up the good work :)
Wojtek

Parent Selector Keyword

Given the behaviour of clicking through on a target and receiving back the embedded anchor target, it would be incredibly useful if in addition to "target" (or "itself" or any of the existing variants) a user could also say "parent". For example in this code:

<div class="dropdown button>
  <a>Button Text</a>
  <div class="dropdown-content"></div>
</div>

If I want to put an active class on the entire dropdown element (to change the state of the dropdown-content) I can only do so by using sibling selectors on an active anchor – I can't put 'active' on the dropdown div. It'd be great if I could say:

<code>
  clicking on ".dropdown a" toggles ".active" on "parent"
</code>

Browser support

I am getting ready to submit a PR, but was wondering what kind of support you wanted this script to have?

You currently don't support IE8, can that be assumed?

What about IE9? 10?

Thanks!

Add "removes" an item as an action

Based on #5, as a first iteration adding the "removes" action to remove a DOM element would be great, IMO, but it would need some refactor. What do you think @bendc?

Happy to work on a Pull Request

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.