Giter Site home page Giter Site logo

gyx8899 / yx-webthemekit Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 2.14 MB

YX-WebThemeKit is a tool kit for web common theme.

Home Page: https://gyx8899.github.io/YX-WebThemeKit/

HTML 10.78% CSS 69.98% JavaScript 19.24%
yx-webthemekit js-plugin js-tool theme-framework

yx-webthemekit's Introduction

YX-WebThemeKit (网页组件工具包)

一. 点击YX-WebThemeKit (Home Page)预览;

二. 尝试引入脚本标签到页面,查看意想不到的效果;


组件列表

所有的组件都可以被通过定制化而重用

1. 'theme-header-footer':

[福利-开发者专有] 复制你喜欢的页面头部、脚部,应用到到你想要的页面
  1. 发现你喜欢的页面头部和脚部;
  2. 拷贝对应的html代码到你自己的html文件中;
  3. 根据headerFooter.js的要求修改你的html文件;
  4. 引入你修改后的自定义的脚本headerFooter-[name].js到你想要的页面;
<!-- Script Theme *** JS -->
<script src="https://gyx8899.github.io/YX-WebThemeKit/theme-header-footer/headerFooter-auto.js"></script>

2. 'fn-pre-loader':

[福利-开发者专有] 在页面加载相对较慢的网页中,帮助你显示正在加载中的效果
  1. 支持自定义显示的图片;
  2. 支持自定义的动画样式;
  3. 支持自定义载入成功事件;
<!-- Script Preload code *** JS -->
<script src="https://gyx8899.github.io/YX-WebThemeKit/fn-pre-loader/preLoader.min.js?type=split-ssc"></script>

3. 'fn-preview-code':

[福利-开发者专有] 在你的示例页面,帮你直接显示你的代码,省去查看源代码。
  1. 在要显示的代码标签上,加上data-toggle="previewCode"data-target="#[targetId]",[targetId] 是代码要显示的位置标签Id;
  2. 可选项,自定义代码显示区域的标题,data-title="titleAboveCode"
<!-- Script PreViewCode *** JS-->
<script src="https://gyx8899.github.io/YX-WebThemeKit/fn-preview-code/previewCode-auto.js" defer></script>

YX-WebThemeKit

Firstly, you can preview all here YX-WebThemeKit (Home Page).

Secondly, you are suggested to import interested component script code to your page.


Components

All components could be reused with custom.

What you should do is simply import [component-name]-auto.js to your page.

1. 'theme-header-footer':

Copy and apply the header/footer you favorite to anywhere you want.
  • Find your favorite header/footer;
  • Copy the html to your html file;
  • Apply headerFooter.js rules to your html file;
  • Import your custom headerFooter-[name].js to the anywhere page you want;
<!-- Script Theme *** JS -->
<script src="https://gyx8899.github.io/YX-WebThemeKit/theme-header-footer/headerFooter-auto.js"></script>

2. 'fn-pre-loader':

Showing loading state before your document ready!
  • Support custom loading image;
  • Support custom animation style;
  • Support custom loaded event to end the loading state;
<!-- Script Preload code *** JS -->
<script src="https://gyx8899.github.io/YX-WebThemeKit/fn-pre-loader/preLoader.min.js?type=split-ssc"></script>

3. 'fn-preview-code':

Help your demo page display code directly;
  • Just set data-toggle="previewCode" and target code displaying tag data-target="#[targetId]";
  • Optional code title's setting with data-title="titleAboveCode";
<!-- Script PreViewCode *** JS-->
<script src="https://gyx8899.github.io/YX-WebThemeKit/fn-preview-code/previewCode-auto.js" defer></script>

Support or Contact

Contact support @gyx8899 email and I will reply as soon as possible.

yx-webthemekit's People

Contributors

dependabot[bot] avatar gyx8899 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.