Home Archives About Tags Works
11月 6 2015
Web►Front-End

[Front-End] mouseDown手機上運行

前言

手機上無法使用mouseDown等等的事件,必須使用touchStart,網路上找到別人寫的替換方法。

Read More

Share Comments
  • JavaScript
9月 22 2015
Web►Front-End

[Front-End] 自動調整Contenteditable邊界

前言

HTML5有contenteditable屬性,可以達到類似textarea的效果。

Read More

Share Comments
  • JavaScript
9月 12 2015
Web►Front-End

[Front-End] removeClass和addClass

前言

在純JavaScript使用addClass和removeClass。

Read More

Share Comments
  • JavaScript
9月 8 2015
Web►Front-End

[Front-End] 利用window.open傳值

前言

之前用過網址在網頁間傳值,這次利用window.open()在子母視窗間取值傳值。

Read More

Share Comments
  • JavaScript
9月 7 2015
Web►Front-End

[Front-End] toDataURL及crossOrigin

前言

使用toDataURL()卻發現失敗,原來是因為跨網域的關係。

Read More

Share Comments
  • Canvas
  • JavaScript
9月 1 2015
Web►Front-End

[Front-End] 自動調整Textarea邊界

前言

延續上次的文章,取得文字高度和寬度後就可以動態調整邊界。

Read More

Share Comments
  • JavaScript
8月 27 2015
Web►Front-End

[Front-End] Cavnas取得文字高度

前言

最近在利用Canvas製作類似修圖的App,在fillText的部分一直抓不到座標,最後才發現原來座標的基準點是文字的左下角而不是左上角,因此將文字的高度補回來就可以得到左上角的座標,但問題是要如何取得高度呢?

Read More

Share Comments
  • Canvas
  • HTML5
  • JavaScript
8月 10 2015
Web►Front-End

[Front-End] 使用x-gif操控gif

前言

x-gif可以使用<x-gif>的標籤來顯示gif檔,透過這個標籤可以動態的調整gif。

Read More

Share Comments
  • JavaScript
7月 27 2015
Web►Front-End

[Front-End] Drag And Drop隨意拖曳

前言

HTML5提供了Drag And Drop可以拖曳物件,研究了一下如何在區塊內隨意拖曳。

Read More

Share Comments
  • HTML5
  • JavaScript
7月 13 2015
Web►Front-End

[Front-End] 利用getUserMedia拍照

前言

現在HTML5可以直接使用getUserMedia開啟裝置的相機。

Read More

Share Comments
  • HTML5
  • JavaScript
12Next »

Categories

  • Content Management System1
    • Joomla1
  • Learning Note1
    • Machine Learning1
  • Mobile Application9
    • Android6
    • Cordova3
  • Online Judge47
    • Codewars3
    • Google Code Jam1
    • LeetCode31
    • Pwnable.kr1
    • UVa11
  • Other3
  • Programming Language19
    • C/C++4
    • Java5
    • JavaScript9
    • Python1
  • Security1
  • Server1
    • CentOS1
  • Tool3
    • Compiler1
    • Parser1
      • Bison1
    • Scanner1
      • Flex1
  • Web44
    • Front-End19
    • Hexo3
    • Markdown1
    • Node.js2
    • Other4
    • Overall9
    • PHP3
    • Phoenix1
    • Redux1
    • jQuery1

Recents

  • [LeetCode] 670 - Maximum Swap
  • [LeetCode] 654 - Maximum Binary Tree
  • [LeetCode] 647 - Palindromic Substrings
  • [LeetCode] 560 - Subarray Sum Equals K
  • [LeetCode] 515 - Find Largest Value in Each Tree Row
  • [LeetCode] 513 - Find Bottom Left Tree Value
  • [LeetCode] 508 - Most Frequent Subtree Sum
  • [LeetCode] 451 - Sort Characters By Frequency
  • [LeetCode] 442 - Find All Duplicates in an Array
  • [LeetCode] 287 - Find the Duplicate Number

Links

  • Online Avalon
  • MapleStory Defense
  • Building House
Powered by Hexo and Theme by landscape © Chi-Wei Liu
Home Archives About Tags Works