Skip to content
Permalink
Browse files

Implement copy to clipboard in created.html

  • Loading branch information
remram44 committed Feb 14, 2015
1 parent 3eee180 commit 2207644d7f9b977390fc31b8e34e62134a1d0646
Showing with 30 additions and 2 deletions.
  1. +7 −0 CMakeLists.txt
  2. BIN assets/clippy.swf
  3. +23 −2 created.html
@@ -21,6 +21,13 @@ ADD_CUSTOM_TARGET(
public
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_BINARY_DIR}/public")

# Copies assets
ADD_CUSTOM_TARGET(
assets ALL
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_SOURCE_DIR}/assets/clippy.swf
"${CMAKE_BINARY_DIR}/public/clippy.swf")

# Build source list
SET(INSURLT_FILES permgen.cpp insults.cpp database.cpp template.cpp)

BIN +5.25 KB assets/clippy.swf
Binary file not shown.
@@ -25,8 +25,29 @@
<body>
<div>
<h2>C'est long, hein.</h2>
<input type="url" id="longjerkurl" readonly value="{{ url }}" />
<input type="button" id="comeonandclick" value="Copie &#231;a." />
<input type="url" id="longjerkurl" readonly value="{{ url }}" onclick="select()" />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
width="110"
height="14"
id="clippy" >
<param name="movie" value="/clippy.swf"/>
<param name="allowScriptAccess" value="always" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param NAME="FlashVars" value="text={{ url }}">
<param name="bgcolor" value="#666">
<embed src="/clippy.swf"
width="110"
height="14"
name="clippy"
quality="high"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
FlashVars="text={{ url }}"
bgcolor="#666"
/>
</object>
</div>
</body>
</html>

0 comments on commit 2207644

Please sign in to comment.
You can’t perform that action at this time.