Browse Source

修改类型(封装和整合代码),影响的范围(无影响),[初始化上传]

master
郑荣升 5 years ago
committed by wailovet
parent
commit
7052665a35
  1. 1
      .gitignore
  2. 3
      CHANGELOG.md
  3. 7
      README.md
  4. 14
      index.html
  5. 17
      index.js
  6. 17
      oval.svg
  7. 4
      xwebstart.sh

1
.gitignore

@ -1,2 +1,3 @@
*.exe
.idea
.egit-private

3
CHANGELOG.md

@ -8,5 +8,8 @@
+ 3136352472 [10:56:03] :添加忽略文件;影响的范围(代码逻辑)
+ 3136352472 [10:55:29] :添加egit工具;影响的范围(代码逻辑)
#### 封装和整合代码
+ 3136352472 [12:11:54] :初始化上传;影响的范围(无影响)
------

7
README.md

@ -1,3 +1,8 @@
# ouxuanac-boot
树莓派ouxuanac启动器
树莓派ouxuanac启动器
树莓派关闭可视化界面,root账户下
> sudo /usr/bin/xinit xwebstart.sh -nocursor

14
index.html

@ -1,10 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
html {
text-align: center;
background: linear-gradient(135deg, #3023ae 0%, #c86dd7 100%);
cursor: none;
}
</style>
</head>
<body>
<div style="text-align:center;width:120px;height:120px;position:fixed;top:50%;left:50%;margin-left:-60px;margin-top:-60px;background: #2C3E50;padding: 20px;box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.37)">
<img src="oval.svg" style="width:100%;height:100%;">
</div>
</body>
</html>

17
index.js

@ -0,0 +1,17 @@
const { app, BrowserWindow } = require('electron')
function createWindow () {
// 创建浏览器窗口
let win = new BrowserWindow({
width: 1024,
height: 600,
kiosk:true,
frame: false
})
// 加载index.html文件
win.loadFile('index.html')
}
app.on('ready', createWindow)

17
oval.svg

@ -0,0 +1,17 @@
<!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
<svg width="38" height="38" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
<g fill="none" fill-rule="evenodd">
<g transform="translate(1 1)" stroke-width="2">
<circle stroke-opacity=".5" cx="18" cy="18" r="18"/>
<path d="M36 18c0-9.94-8.06-18-18-18">
<animateTransform
attributeName="transform"
type="rotate"
from="0 18 18"
to="360 18 18"
dur="1s"
repeatCount="indefinite"/>
</path>
</g>
</g>
</svg>

4
xwebstart.sh

@ -0,0 +1,4 @@
#!/bin/sh
# 将electron换成绝对路径
electron --no-sandbox /web/main.js
Loading…
Cancel
Save