Skip to content

Commit

Permalink
Repair the git repository [0.0.2]
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsgi committed Feb 4, 2019
0 parents commit 5b6bc89
Show file tree
Hide file tree
Showing 186 changed files with 158,290 additions and 0 deletions.
Empty file added .gitignore
Empty file.
13 changes: 13 additions & 0 deletions app/alert/alert.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
app_alert(pid);

function app_alert(_pid) {
$("#winc" + _pid).css("width", "400px").css("text-align", "center");
if( System.args[pid] ){
$("#winc" + _pid + " .alert-title").text(System.args[pid][0]);
$("#winc" + _pid + " .alert-content").html(System.args[pid][1]);
$("#wt" + _pid).html("<img src='./app/alert/icon.png'>"+System.args[pid][0]);
}
$("#winc" + _pid + " .kit-button").on("click", function(){
close(_pid);
});
}
5 changes: 5 additions & 0 deletions app/alert/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div>
<h3 class='alert-title'></h3>
<div class='alert-content'></div>
<a class="kit-button">閉じる</a>
</div>
11 changes: 11 additions & 0 deletions app/alert/define.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "alert",
"name": "アラート",
"icon": "icon.png",
"version": "0.0.0",
"author": "kit",

"view": "default.html",
"script": "alert.js",
"css": ""
}
Binary file added app/alert/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/browser/bgp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions app/browser/bookmark-add.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<!DOCTYPE html>
<html lang="ja">

<head>
<meta charset="UTF8" />
<title>ikra beta</title>
<script src="jquery.min.js"></script>
<style type="text/css">
body {
background-color: black;
color : white;
margin: 0px;
padding: 10px;
font-size: 16px;
background: url("bgp.jpg");
text-shadow: 0px 1px 4px rgba(0,0,0,.5);
}
header{
font-size: 20px;
opacity : .8;
padding : 10px;
margin-top : 10px;
}
input{
outline: 0;
font-size : 20px;
border : 1px solid white;
border-radius : 6px;
padding : 8px;
color : white;
background : rgba(255,255,255,.3);
}
a{
line-height: 200%;
color : white;
}
#add{
background: dodgerblue;
color: white;
padding: 11px;
border-radius: 5px;
cursor: pointer;
}
</style>
<script type="text/javascript">
$(document).ready(Load);
function Load() {
var bookmarks = {};
if( localStorage["browser-bookmark"] ){
bookmarks = JSON.parse(localStorage["browser-bookmark"]);
}
$("#add").click(function(){
if( $("#url").val() == "" || $("#name").val() == "" ){
$("body").append("<br>両方の項目を入力してください。");
return false;
}
bookmarks[$("#name").val()] = $("#url").val();
localStorage["browser-bookmark"] = JSON.stringify(bookmarks);
location.href = "bookmark.html";
});
}
</script>
</head>

<body id="body">
<a href="bookmark.html">キャンセル</a>
<header>ブックマークの追加</header>
名前<br>
<input type="text" id="name"><br>
URL<br>
<input type="text" id="url"><br>
<br>
<a id="add">追加</a>
</body>

</html>
70 changes: 70 additions & 0 deletions app/browser/bookmark.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!DOCTYPE html>
<html lang="ja">

<head>
<meta charset="UTF8" />
<title>bookmarks</title>
<script src="jquery.min.js"></script>
<style type="text/css">
body {
background-color: black;
color : white;
margin: 0px;
padding: 10px;
font-size: 16px;
background: url("bgp.jpg");
text-shadow: 0px 1px 4px rgba(0,0,0,.5);
}
header{
font-size: 20px;
opacity : .8;
padding : 10px;
margin-top : 10px;
}
input{
outline: 0;
font-size : 20px;
border : 1px solid white;
border-radius : 6px;
padding : 8px;
color : white;
background : rgba(255,255,255,.3);
}
a{
line-height: 200%;
color : white;
}
#sb{
background: dodgerblue;
color: white;
padding: 5px 10px;
border-radius: 5px;
cursor: pointer;
}
</style>
<script type="text/javascript">
$(document).ready(Load);
function Load() {
var bookmarks = {};
if( localStorage["browser-bookmark"] ){
bookmarks = JSON.parse(localStorage["browser-bookmark"]);
}
else $("#area").append("ブックマークが登録されていません。");
for( i in bookmarks ){
$("#area").append( "・<a href='"+bookmarks[i]+"'>"+i+"</a><br>" );
}
}
</script>
</head>

<body id="body">
<a href="newtab.html">戻る</a>
<header>
ブックマーク
<a href="bookmark-add.html" id="sb">追加</a>
</header>
ブックマークの編集は設定の「高度な設定」から
<div id="area"></div>
</body>

</html>
57 changes: 57 additions & 0 deletions app/browser/browser.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
.winc-browser{
padding: 0px;
}
.winc-browser iframe{
width: 500px;
height: 360px;
margin: 0px;
margin-bottom: -6px;
border: none;
}
.winc-browser .browser-toolbar{
padding: 4px;
background: #505050;
border-bottom: 1px solid #a0a0a0;
}
.winc-browser .btn{
border: none;
padding: 3px 6px;
margin: 0px 2px;
}
.winc-browser #browser-url{
border: none;
background: rgba(255,255,255,.7);
font-size: 15px;
width: calc( 100% - 122px );
}
.winc-browser #browser-url:focus{
background: #ffffff;
}
.browser-message{
display: none;
background: white;
margin: 3px;
padding: 3px;
font-size: 14px;
border-radius: 4px;
}
.browser-menu{
display: none;
float: right;
position: absolute;
z-index: 1;
right: 0px;
background: white;
border-radius: 0px 0px 0px 5px;
padding: 6px 0;
box-shadow: -2px 2px 4px -2px black;
}
.browser-menu a{
display: block;
font-size: 15px;
padding: 2px 10px;
}
.browser-menu a:hover{
background: dodgerblue;
color: white;
}
36 changes: 36 additions & 0 deletions app/browser/browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
app_browser(pid);

function app_browser(_pid){
if( System.args[_pid] ){
$("#winc" + _pid +" #browser-frame").attr("src", System.args[_pid]);
$("#winc" + _pid +" #browser-url").val(System.args[_pid]);
}

if( localStorage["kit-default-browser"] != "browser" ){
$("#winc" + _pid +" .browser-message").show();
}

$("#winc" + _pid + " #browser-message-close").on("click", function(){
$("#winc" + _pid +" .browser-message").hide();
});

$("#winc" + _pid + " .browser-bars").on("click", function(){
$("#winc" + _pid +" .browser-menu").toggle();
});

$("#winc" + _pid +" #browser-url").keypress(function(e){
if( e.which == 13 ){
$("#winc" + _pid +" #browser-frame").attr("src", $("#winc" + _pid +" #browser-url").val());
}
});

$("#w" + _pid).resizable({
alsoResize: "#w"+_pid+" #browser-frame",
minWidth: "200"
});

$("#winc" + _pid + " #browser-menu-bookmark").on("click", function(){
$("#winc" + _pid +" #browser-frame").attr("src", "./app/browser/bookmark.html");
$("#winc" + _pid +" .browser-menu").hide();
});
}
18 changes: 18 additions & 0 deletions app/browser/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div class="browser-toolbar">
<div class="browser-message">標準のブラウザに設定されていません
<a class="btn" onclick="localStorage.setItem('kit-default-browser', 'browser')">設定する</a>
<a class="btn" id="browser-message-close">閉じる</a>
</div>
<a class="kit-button" onclick="window.history.back()"><span class="fa fa-arrow-left"></span></a>
<a class="btn" onclick="window.history.forward()"><span class="fa fa-arrow-right"></span></a>
<input type="text" class="textbox" id="browser-url">
<a class="btn browser-bars"><span class="fa fa-bars"></span></a>
</div>
<div class="browser-menu">
<a><span class="fa fa-redo"></span> 再読み込み</a>
<a onclick="launch('browser')"><span class="far fa-plus-square"></span> 新しいウィンドウ</a>
<a id="browser-menu-bookmark"><span class="far fa-bookmark"></span> ブックマーク</a>
<a id="browser-menu-open"><span class="fa fa-external-link-square-alt"></span> ページを開く</a>
<a id="browser-menu-default"><span class="far fa-hand-peace"></span> 標準のブラウザ</a>
</div>
<iframe src="./app/browser/newtab.html" id="browser-frame" data-simplebar></iframe>
11 changes: 11 additions & 0 deletions app/browser/define.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "browser",
"name": "ブラウザ",
"icon": "icon.png",
"version": "1.0.3",
"author": "kit",

"view": "default.html",
"script": "browser.js",
"css": "browser.css"
}
Binary file added app/browser/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions app/browser/jquery.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 5b6bc89

Please sign in to comment.