Giter VIP home page Giter VIP logo

module-popuppromo's Introduction

Module-PopupPromo

功能描述

這是一個提供行銷人員設定促銷活動相關內容的模組,會以 popup 視窗的形式,覆蓋在網頁上面。

模組提供設定圖片、大標、副標、描述、連以及顯示時間。

使用方式

  1. 引入模組: <script src="/popup-promo/popup-promo.js"></script>

  2. 在頁面上加上 tag: <div id="popup-promo"></div>

  3. 設定參數:

    promoInfo = {
        image: "",
        title: "",
        subtitle: "",
        description: "",
        link: "",
        linkName: "",
        duration: "" // second (optional)
    }
    
  4. 呼叫 show() 並帶入參數,初始化:popupPromo.show(promoInfo);

模組功能

參數

image: 設定圖片。

title: 大標題。

subtitle: 副標題。

description: 文字內容。

link: 連結位址。

linkName: 連結名稱。

duration (optional): 視窗要持續多久時間才關閉,單位為秒。

Method

show: 初始化並載入視窗。

open: 開啟視窗。

close: 關閉視窗。

module-popuppromo's People

Contributors

cyhsu1989 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.