add reader pause/delete buttons

This commit is contained in:
wareya committed 2019-08-14 06:06:45 -04:00
1 parent 162c244795
commit 59b64c11ea
3 files changed
+63 -3

No files matched your search

+38 -1
View File
@@ -21,6 +21,42 @@ p
margin-top: 5px;
margin-bottom: 5px;
}
button
{
background: rgb(255,255,255);
background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(244,241,238,1) 72%, rgba(219,211,197,1) 100%);
border: none;
border-radius: 5px;
outline: 1px solid rgba(0, 0, 0, 0.5);
-moz-outline-radius: 5px;
cursor: pointer;
font-size: 65%;
font-weight: 600;
height: 2em;
transition: all .05s ease-in-out;
}
#button_pause:hover
{
opacity: 1.0;
}
#button_delete:hover
{
opacity: 1.0;
}
#button_pause
{
opacity: 0.35;
position: fixed;
right: 5px;
bottom: calc( 10px + 2em );
}
#button_delete
{
opacity: 0.35;
position: fixed;
right: 5px;
bottom: 5px;
}
</style>
<style id=new_color_style>
body > p:nth-of-type(1)
@@ -30,7 +66,6 @@ body > p:nth-of-type(1)
</style>
<script src="include/browser-polyfill.min.js" charset="UTF-8"></script>
<script src="reader.js" charset="UTF-8"></script>
<script src="texthook.js" charset="UTF-8"></script>
</head>
<body lang="ja">
@@ -38,6 +73,8 @@ body > p:nth-of-type(1)
<p><i>This page grabs from the clipboard automatically if it contains Japanese text. If this page is not opened, Nazeka will never access the clipboard.</i></p>
<p><i>Use the context menu (right click the page) to toggle Nazeka.</i></p>
<div style="position:absolute;visibility:hidden"><textarea id="nazeka-paste-target"></textarea></div>
<button id=button_pause>Pause</button>
<button id=button_delete>Delete Newest</button>
</body>
</html>