bendc / uilang Goto Github PK
View Code? Open in Web Editor NEWA minimal, UI-focused programming language for web designers.
Home Page: uilang.com
License: MIT License
A minimal, UI-focused programming language for web designers.
Home Page: uilang.com
License: MIT License
cubic-bezier transitions on opacity make items blink
http://cl.ly/XKnc
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:
self.classValue.split(" ").forEach(function (value) {
el.classList[self.classBehavior](value)
});
See more:https://github.com/qweek/uiscript/blob/master/uiscript.js
Hey! Thanks for a nice idea and project!
Could you move http://uilang.com to github-pages? Cause it should be open sourced too!
If you need any help, I can do.
Are there any ideas, new features or something like that to expect in the future?
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>
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.
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
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>
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.