GithubHelp home page GithubHelp logo

youmightnotneedjs's Introduction

You Might Not Need JavaScript

A fork of YouMightNotNeedjQuery.com. You might not need scripts at all.

To contribute, please open an issue and/or submit a Pull Request referencing the issue.

File Structure:

  • index.jade = Jade code layout
  • index.styl = Stylus styling
  • comparisons/ = folder containing comparison items and topics
    • Individual subtopics are inside of comparisons. Each has:
      • html.html = markup
      • scss.scss or css.css = css
      • resources.txt = resource list

youmightnotneedjs's People

Contributors

adamschwartz avatar akorchev avatar asalisbury avatar chousmith avatar damieng avatar delehef avatar diegoleme avatar dustmason avatar eipark avatar estelle avatar etlovett avatar fabricionaweb avatar fhemberger avatar haroenv avatar headbandno2 avatar marcysutton avatar mmollick avatar morkro avatar pborreli avatar rick avatar rkrupinski avatar rwaldron avatar shadeed avatar t3chnoboy avatar techtolentino avatar una avatar vicnicius avatar yukulele avatar zackbloom 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

youmightnotneedjs's Issues

CanIUse Support Visuals

To help better visualize the browser support of some of these features, it would be nice to have a table of browser versions which work with them

CSS Drop-down Menus

Please add a demo of drop-down menus with pure CSS. Could be either on-hover or on-click.

Typeahead Component?

The HTML5 <datalist> component is really exciting to me. You can create a familiar typeahead component without any JavaScript! And with a bonus if you are clever with how you structure the markup it can be backwards compatible as a <select> as well.

I'd be glad to send a PR for this.

Example
https://jpdevries.github.io/datalist/

Note: <datalist> can also be used with <input type="range"> to create "snap points".

Read more

How about an animated read more toggle?

CSS-Only Modal - FF/Safari

first up... Love this!

(back story: I consume links clicked in twitter / reeder in Safari)

Opening up the site, I clicked through and noticed this one doesn't want to work. I opened the CodePen fully - http://codepen.io/una/full/pEVjwj/ - and tried it in Safari 9.1 (so this might be fixed in Sierra) and FireFox (dev. edition) 51.0a2

I'll try and dig into why, what needs fixing, but can't guarantee when :(

Lovely project :)

More flexible tabs

Hi, love the site—great work!

I noticed that the tab containers are absolutely positioned, with min-height hardcoded.

Unfortunately, this leads to many issues, not the least of which is that longer content will overflow the container!

I've demonstrated an alternative here: http://codepen.io/anon/pen/ZpmKdA?editors=1100

I haven't heavily tested it in all browsers, but it solves most of the problems I ran into with the version on the site.

It was modified from the technique described here

I leave it to you to decide whether or not it's an improvement!

CodePen requires JavaScript

When I click on examples (such as "See the Pen CSS Only Accordion: youmightnotneedjs.com " I get a big red bordered error message "CodePen requires JavaScript to render the code and preview areas in this view."

This seems rather contrary to the purpose of the demonstration :-(

Of course I totally agree with the purpose of the site, since of course I use NoScript to avoid running random untrusted code from random untrusted sources.

Autofocusing a form field on page load

Use jQuery for this for years - just need to add autofocus to the field.

(I'll happily do a PR for this, just a bit busy today. Will try to get to it tomorrow.)

For modal use :target instead of :focus

Hi Una,

Love this effort. Thanks for putting some work into this.
My suggestion for the modal is to use :target instead of :focus as it also moves the focus to the open modal (important for a11y) and is arguably more stable.
A trick here is to use the close button to target the original open button as well so focus is also returned to the original element.
Happy to do a PR if you're interested.

Cheers

For image slider, use transform instead of left

On desktop I can see the image slider is a little janky as it slides across.
If it animated the transform instead of the left property, it'd be smooth as butter. (Might want to put will-change: transform on it too)

Accordion Code Doesn't Match CodePen

Not sure if this repo is still being maintained, but just stumbled across this today. Love it.

Link to issue

In the embedded CodePen, all <input type="radio">s are replaced with <input type="checkbox">s. Inline code is correct, embedded sample is not.

Fix Twitter Link

To resemble youmightnotneedjquery.com
(currently it's commented out)

Typo in HTML for image slider

The HTML for the image slider component is inconsistent w/ that of the codepen.

It is currently:

<div id="slider"></div>
<div id="slide-holder">
  <div class="slide">content1</div>
  <div class="slide">content2</div>
  <div class="slide">content3</div>
</div>

It should become:

<div id="slider">
  <div id="slide-holder">
    <div class="slide">content1</div>
    <div class="slide">content2</div>
    <div class="slide">content3</div>
  </div>
</div>

Less thin fonts

When f.lux on my computer is enabled I have a hard time reading the <h1>s and <h2>s, because they have a font weight of respectively 200 and 100. I would prefer it personally if the font would be a bit wider so it's more legible.

If you like this suggestion I can make a PR for it

Enhance the a11y note

When I first read the description, I skipped quickly to the demos and didn't notice the a11y note until I checked it again :D

I fiddled with this in the browser:
screen shot 2016-10-12 at 6 33 06 am

Thoughts please? Will be happy to do a PR if all is good.

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.