weixin_39700548
weixin_39700548
2020-12-25 19:48

Style Toggle

I added the ability to toggle between the original css and my css.

I took out the things that I set up for my personal use (like removing the browser support comments and the restyling of the sandbox). I tried to set up the capability to toggle between the sandboxes, but I'm pretty new to jQuery and was having trouble. If that's something you're interested in as well, I can dig a little deeper.

Added two lines to the index.html, one is the script tag for the toggling, and the other is a <div id="toggle_style"> at the bottom (probably unnecessary if I change the skins differently, but this is the way I know to make it work for now).

It shows that I made other changes, but I didn't. Not sure why it shows that.

Thanks, Curtis

该提问来源于开源项目:paulirish/css3please

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39700548 weixin_39700548 4月前

    awesome! could i get my name linked to curtisblackwell.com?

    点赞 评论 复制链接分享
  • weixin_39722692 weixin_39722692 4月前

    totally. just give me a commit for that and i'll pull it over and update it.

    点赞 评论 复制链接分享
  • weixin_39722692 weixin_39722692 4月前

    btw thx for all this. you totally nailed it. :)

    点赞 评论 复制链接分享
  • weixin_39722692 weixin_39722692 4月前

    pulled and added to http://css3plz.com/ hows it look?

    点赞 评论 复制链接分享