Ring UI Web Module

製品情報

¥17,329
cart 買い物カゴに追加 お気に入り
ユーザーガイド

inspectedPieceX検証済み

デベロッパー

Webology
コードサンプルのリクエスト ダイレクトメッセージ

2019年07月31日

公開チャット

製品詳細

Ring elements for your UI are very popular in modern webdesign. This project serves
as an easy way to add rings to your website UI without any real programming.
Simply add the markup to HTML and call to javaScript to change the fill and inner
content.
To put content/text around or underneath, that is all unrelated, you can treat this as
a div box and just put your additional content around. Line background color,
foreground color and font color can be set. Using ‘transparent’ is perfectly fine as a
value, as per usual in CSS, so making the background line vanish and only having the
active line is easy.
This tool is mainly written in JavaScript which writes HTML using CSS and SVG for
simple integration in websites.
How to Use:
Uses Jquery.

If you create any tag with the class ‘ring_ui’, this code will create a ring element for
you. This means that even this basic line, will yield a ring element:
>

All settings are in fact optional, to make the code more robust and usage more
flexible. Using default values when attributes are omitted.
The following example show you all attributes possible:
>
ring-frontcolor='orange' ring-backcolor='#444' ring-fontsize='64'
> ring-fontcolor='orange' ring-percent='33' > inner content

ring-size: Size in pixels, ring is square.
ring-thickness: The thickness of the line
ring-frontcolor: The color of the line in the foreground, the active percentage line.
ring-backcolor: The color of the background line.
ring-fontsize: Size of the font inside the inner content. In pixels.
ring-fontcolor: Color of the font inside the inner content.
ring-percent: You may set the initial percentage fill here, however this is mostly used
for the dynamic changes.
Colors can be specified in any format that CSS permits.
To change the inner content of the ring, use this call:
ringUI.changeContent(divbox, string of text or html);
You may use any HTML code in the content part. The parameter divbox denotes the
div of the ring_ui class.
Example:
> ringUI.changeContent($('#time-sec-ring'), now.getSeconds());
For changing the fill in percent:
ringUI.changePercent(divbox, integer of percentage);
Example:
> ringUI.changePercent($('#time-sec-ring'), parseInt((now.getSeconds()/60) *
> 100) ); Simply add the markup to HTML and call to javaScript to change the fill and inner
content. To put content/text around or underneath, that is all unrelated, you can treat this as
a div box and just put your additional content around. Line background color,
foreground color and font color can be set. If you create any tag with the class ring_ui , this code will create a ring element for
you.

ファイルツリー

  • 📁 Ring UI Web Module

価格情報

価格の統計

最高価格
¥NA
平均価格
¥NA
最低価格
¥NA
AI価格予測
¥NA

インサイト

レビュー と評価
2020年12月18日
Great source Lots of info. Works just like it should.
ratingsratingsratingsratingsratings
2020年04月20日
Works perfect.
ratingsratingsratingsratingsratings

限定プレビュー


実際の製品には、すべてのファイルと完全なコードが含まれています。

依存パッケージ

依存パッケージを表示する

ランダムサンプルファイル

プロジェクトファイルの統計

階層

サンプルファイルを選択してください
X

Stay in touch

  • ビジネスおよび開発者向けの実用的な最新情報をご希望ですか?
  • ソースコードプロジェクトに対するPieceXコミュニティのニーズについてご提供します。
  • PieceXの最新の無料コミュニティコードプロジェクトをいち早くお知らせします。
PieceX Logo