diff --git a/2020-10-27.json b/2020-10-27.json new file mode 100644 index 0000000..d9e6977 --- /dev/null +++ b/2020-10-27.json @@ -0,0 +1 @@ +{"":"考点28\n\t"} \ No newline at end of file diff --git a/7z.dll b/7z.dll new file mode 100644 index 0000000..5598fe3 Binary files /dev/null and b/7z.dll differ diff --git a/7z.exe b/7z.exe new file mode 100644 index 0000000..77cdcba Binary files /dev/null and b/7z.exe differ diff --git a/C15S/Wallpaper3/D3Dcompiler_47.dll b/C15S/Wallpaper3/D3Dcompiler_47.dll new file mode 100644 index 0000000..e5bf5cf Binary files /dev/null and b/C15S/Wallpaper3/D3Dcompiler_47.dll differ diff --git a/C15S/Wallpaper3/Qt5Core.dll b/C15S/Wallpaper3/Qt5Core.dll new file mode 100644 index 0000000..9f24aaa Binary files /dev/null and b/C15S/Wallpaper3/Qt5Core.dll differ diff --git a/C15S/Wallpaper3/Qt5Gui.dll b/C15S/Wallpaper3/Qt5Gui.dll new file mode 100644 index 0000000..9f872a3 Binary files /dev/null and b/C15S/Wallpaper3/Qt5Gui.dll differ diff --git a/C15S/Wallpaper3/Qt5Network.dll b/C15S/Wallpaper3/Qt5Network.dll new file mode 100644 index 0000000..4883060 Binary files /dev/null and b/C15S/Wallpaper3/Qt5Network.dll differ diff --git a/C15S/Wallpaper3/Qt5Positioning.dll b/C15S/Wallpaper3/Qt5Positioning.dll new file mode 100644 index 0000000..a86ecc4 Binary files /dev/null and b/C15S/Wallpaper3/Qt5Positioning.dll differ diff --git a/C15S/Wallpaper3/Qt5PrintSupport.dll b/C15S/Wallpaper3/Qt5PrintSupport.dll new file mode 100644 index 0000000..019c736 Binary files /dev/null and b/C15S/Wallpaper3/Qt5PrintSupport.dll differ diff --git a/C15S/Wallpaper3/Qt5Qml.dll b/C15S/Wallpaper3/Qt5Qml.dll new file mode 100644 index 0000000..670a931 Binary files /dev/null and b/C15S/Wallpaper3/Qt5Qml.dll differ diff --git a/C15S/Wallpaper3/Qt5Quick.dll b/C15S/Wallpaper3/Qt5Quick.dll new file mode 100644 index 0000000..f32bd3d Binary files /dev/null and b/C15S/Wallpaper3/Qt5Quick.dll differ diff --git a/C15S/Wallpaper3/Qt5QuickWidgets.dll b/C15S/Wallpaper3/Qt5QuickWidgets.dll new file mode 100644 index 0000000..ebda281 Binary files /dev/null and b/C15S/Wallpaper3/Qt5QuickWidgets.dll differ diff --git a/C15S/Wallpaper3/Qt5SerialPort.dll b/C15S/Wallpaper3/Qt5SerialPort.dll new file mode 100644 index 0000000..411867f Binary files /dev/null and b/C15S/Wallpaper3/Qt5SerialPort.dll differ diff --git a/C15S/Wallpaper3/Qt5Svg.dll b/C15S/Wallpaper3/Qt5Svg.dll new file mode 100644 index 0000000..75516a2 Binary files /dev/null and b/C15S/Wallpaper3/Qt5Svg.dll differ diff --git a/C15S/Wallpaper3/Qt5WebChannel.dll b/C15S/Wallpaper3/Qt5WebChannel.dll new file mode 100644 index 0000000..c064493 Binary files /dev/null and b/C15S/Wallpaper3/Qt5WebChannel.dll differ diff --git a/C15S/Wallpaper3/Qt5WebEngineCore.dll b/C15S/Wallpaper3/Qt5WebEngineCore.dll new file mode 100644 index 0000000..1abc37d Binary files /dev/null and b/C15S/Wallpaper3/Qt5WebEngineCore.dll differ diff --git a/C15S/Wallpaper3/Qt5WebEngineWidgets.dll b/C15S/Wallpaper3/Qt5WebEngineWidgets.dll new file mode 100644 index 0000000..870a373 Binary files /dev/null and b/C15S/Wallpaper3/Qt5WebEngineWidgets.dll differ diff --git a/C15S/Wallpaper3/Qt5Widgets.dll b/C15S/Wallpaper3/Qt5Widgets.dll new file mode 100644 index 0000000..de88156 Binary files /dev/null and b/C15S/Wallpaper3/Qt5Widgets.dll differ diff --git a/C15S/Wallpaper3/QtWebEngineProcess.exe b/C15S/Wallpaper3/QtWebEngineProcess.exe new file mode 100644 index 0000000..5ec51af Binary files /dev/null and b/C15S/Wallpaper3/QtWebEngineProcess.exe differ diff --git a/C15S/Wallpaper3/Wallpaper.exe b/C15S/Wallpaper3/Wallpaper.exe new file mode 100644 index 0000000..c85e36d Binary files /dev/null and b/C15S/Wallpaper3/Wallpaper.exe differ diff --git a/C15S/Wallpaper3/bearer/qgenericbearer.dll b/C15S/Wallpaper3/bearer/qgenericbearer.dll new file mode 100644 index 0000000..e69a794 Binary files /dev/null and b/C15S/Wallpaper3/bearer/qgenericbearer.dll differ diff --git a/C15S/Wallpaper3/bearer/qnativewifibearer.dll b/C15S/Wallpaper3/bearer/qnativewifibearer.dll new file mode 100644 index 0000000..5870093 Binary files /dev/null and b/C15S/Wallpaper3/bearer/qnativewifibearer.dll differ diff --git a/C15S/Wallpaper3/config.json b/C15S/Wallpaper3/config.json new file mode 100644 index 0000000..d285e52 --- /dev/null +++ b/C15S/Wallpaper3/config.json @@ -0,0 +1 @@ +{"layout":2,"path":"C:/C15Support/Wallpaper3/html/example/index.html"} \ No newline at end of file diff --git a/C15S/Wallpaper3/html/example_ori/index.html b/C15S/Wallpaper3/html/example_ori/index.html new file mode 100644 index 0000000..b6e13df --- /dev/null +++ b/C15S/Wallpaper3/html/example_ori/index.html @@ -0,0 +1,29 @@ + + + + + + + Document + + + + + + + \ No newline at end of file diff --git a/C15S/Wallpaper3/html/example_ori/js2.js b/C15S/Wallpaper3/html/example_ori/js2.js new file mode 100644 index 0000000..0925d4b --- /dev/null +++ b/C15S/Wallpaper3/html/example_ori/js2.js @@ -0,0 +1,83 @@ +/** + * Created by Yuki on 2018/5/23. + */ +let can = document.getElementById('can'); +let ctx = can.getContext('2d'); +let ran = Math.random; //封装随机数 +let circularLength = 1300; //这里是生成的粒子的个数 +can.width = window.innerWidth; +can.height = window.innerHeight; +let color = ['red', 'pink', 'lightgreen', 'yellow', 'skyblue']; +let circularArr = []; +let minR = 3; // 最小的粒子的半径 +let maxR = 6; +let x = 10; //粒子的水平间隔 +let y = 10; //粒子的垂直间隔 +(function () {// 生成粒子的匿名函数 + let j = 0; + for (let i = 0; i < circularLength; i++) { + (i % 45 == 0) && (j++); + circularArr.push({ + x: (x * (i % 45) * 5), + y: (y * j * 5), + r: (ran() * maxR ) + minR, + }); + } +})() +let gradient = ctx.createLinearGradient(0, can.height, can.width, 0); +for (let j in color) { + let co = color[j]; + gradient.addColorStop(j / color.length, co); +} +let anger = 0; + +draw(); +function draw() { + anger++; + ctx.clearRect(0, 0, can.width, can.height); + let now = ~~(ran() * circularLength); + let arr = []; + for (let i = 0; i < circularArr.length; i++) { + let c = circularArr[i]; + + if (c.r > 1) { + c.r -= .1; + } else { + c.r = (ran() * maxR) + minR + } + let long = Math.sqrt(Math.pow(c.x - can.width / 2, 2) + Math.pow(c.y - can.height / 2, 2)); + if (long < 2000) { + ctx.globalAlpha = 0.02; + ctx.beginPath(); + ctx.moveTo(can.width / 2, can.height / 2); + ctx.save(); + ctx.translate(c.x, c.y); + ctx.rotate((i * 3) - anger * .01); + ctx.translate(-c.x / 3, -c.y / 3); + ctx.lineTo(0, 0); + ctx.strokeStyle = gradient; + ctx.stroke(); + ctx.restore(); + } + ctx.globalAlpha = 0.4; + ctx.save(); + ctx.translate(c.x, c.y); + ctx.rotate((i * 3) - anger * .01); + ctx.translate(-c.x / 3, -c.y / 3); + ctx.beginPath(); + ctx.arc(0, 0, c.r, 0, 2 * Math.PI); + + ctx.closePath(); + ctx.restore(); + ctx.fillStyle = gradient; + ctx.fill(); + + + } + + requestAnimationFrame(draw) +} +window.onresize = function () { + can.width = window.innerWidth; + can.height = window.innerHeight; +} \ No newline at end of file diff --git a/C15S/Wallpaper3/iconengines/qsvgicon.dll b/C15S/Wallpaper3/iconengines/qsvgicon.dll new file mode 100644 index 0000000..4e74c0c Binary files /dev/null and b/C15S/Wallpaper3/iconengines/qsvgicon.dll differ diff --git a/C15S/Wallpaper3/imageformats/qgif.dll b/C15S/Wallpaper3/imageformats/qgif.dll new file mode 100644 index 0000000..9f9738a Binary files /dev/null and b/C15S/Wallpaper3/imageformats/qgif.dll differ diff --git a/C15S/Wallpaper3/imageformats/qicns.dll b/C15S/Wallpaper3/imageformats/qicns.dll new file mode 100644 index 0000000..bb23b47 Binary files /dev/null and b/C15S/Wallpaper3/imageformats/qicns.dll differ diff --git a/C15S/Wallpaper3/imageformats/qico.dll b/C15S/Wallpaper3/imageformats/qico.dll new file mode 100644 index 0000000..d781628 Binary files /dev/null and b/C15S/Wallpaper3/imageformats/qico.dll differ diff --git a/C15S/Wallpaper3/imageformats/qjpeg.dll b/C15S/Wallpaper3/imageformats/qjpeg.dll new file mode 100644 index 0000000..e5181e1 Binary files /dev/null and b/C15S/Wallpaper3/imageformats/qjpeg.dll differ diff --git a/C15S/Wallpaper3/imageformats/qsvg.dll b/C15S/Wallpaper3/imageformats/qsvg.dll new file mode 100644 index 0000000..0ac7eba Binary files /dev/null and b/C15S/Wallpaper3/imageformats/qsvg.dll differ diff --git a/C15S/Wallpaper3/imageformats/qtga.dll b/C15S/Wallpaper3/imageformats/qtga.dll new file mode 100644 index 0000000..bdf0148 Binary files /dev/null and b/C15S/Wallpaper3/imageformats/qtga.dll differ diff --git a/C15S/Wallpaper3/imageformats/qtiff.dll b/C15S/Wallpaper3/imageformats/qtiff.dll new file mode 100644 index 0000000..e94b8a0 Binary files /dev/null and b/C15S/Wallpaper3/imageformats/qtiff.dll differ diff --git a/C15S/Wallpaper3/imageformats/qwbmp.dll b/C15S/Wallpaper3/imageformats/qwbmp.dll new file mode 100644 index 0000000..2d4f6b5 Binary files /dev/null and b/C15S/Wallpaper3/imageformats/qwbmp.dll differ diff --git a/C15S/Wallpaper3/imageformats/qwebp.dll b/C15S/Wallpaper3/imageformats/qwebp.dll new file mode 100644 index 0000000..324a5b3 Binary files /dev/null and b/C15S/Wallpaper3/imageformats/qwebp.dll differ diff --git a/C15S/Wallpaper3/libEGL.dll b/C15S/Wallpaper3/libEGL.dll new file mode 100644 index 0000000..d27a375 Binary files /dev/null and b/C15S/Wallpaper3/libEGL.dll differ diff --git a/C15S/Wallpaper3/libGLESV2.dll b/C15S/Wallpaper3/libGLESV2.dll new file mode 100644 index 0000000..f11653f Binary files /dev/null and b/C15S/Wallpaper3/libGLESV2.dll differ diff --git a/C15S/Wallpaper3/opengl32sw.dll b/C15S/Wallpaper3/opengl32sw.dll new file mode 100644 index 0000000..6ebc90a Binary files /dev/null and b/C15S/Wallpaper3/opengl32sw.dll differ diff --git a/C15S/Wallpaper3/platforms/qwindows.dll b/C15S/Wallpaper3/platforms/qwindows.dll new file mode 100644 index 0000000..cc51ce8 Binary files /dev/null and b/C15S/Wallpaper3/platforms/qwindows.dll differ diff --git a/C15S/Wallpaper3/position/qtposition_geoclue.dll b/C15S/Wallpaper3/position/qtposition_geoclue.dll new file mode 100644 index 0000000..78a0212 Binary files /dev/null and b/C15S/Wallpaper3/position/qtposition_geoclue.dll differ diff --git a/C15S/Wallpaper3/position/qtposition_positionpoll.dll b/C15S/Wallpaper3/position/qtposition_positionpoll.dll new file mode 100644 index 0000000..d7df2f6 Binary files /dev/null and b/C15S/Wallpaper3/position/qtposition_positionpoll.dll differ diff --git a/C15S/Wallpaper3/position/qtposition_serialnmea.dll b/C15S/Wallpaper3/position/qtposition_serialnmea.dll new file mode 100644 index 0000000..440642f Binary files /dev/null and b/C15S/Wallpaper3/position/qtposition_serialnmea.dll differ diff --git a/C15S/Wallpaper3/position/qtposition_winrt.dll b/C15S/Wallpaper3/position/qtposition_winrt.dll new file mode 100644 index 0000000..b195492 Binary files /dev/null and b/C15S/Wallpaper3/position/qtposition_winrt.dll differ diff --git a/C15S/Wallpaper3/printsupport/windowsprintersupport.dll b/C15S/Wallpaper3/printsupport/windowsprintersupport.dll new file mode 100644 index 0000000..3d6662a Binary files /dev/null and b/C15S/Wallpaper3/printsupport/windowsprintersupport.dll differ diff --git a/C15S/Wallpaper3/resources/icudtl.dat b/C15S/Wallpaper3/resources/icudtl.dat new file mode 100644 index 0000000..b3e6a70 Binary files /dev/null and b/C15S/Wallpaper3/resources/icudtl.dat differ diff --git a/C15S/Wallpaper3/resources/qtwebengine_resources.pak b/C15S/Wallpaper3/resources/qtwebengine_resources.pak new file mode 100644 index 0000000..a6f5009 Binary files /dev/null and b/C15S/Wallpaper3/resources/qtwebengine_resources.pak differ diff --git a/C15S/Wallpaper3/resources/qtwebengine_resources_100p.pak b/C15S/Wallpaper3/resources/qtwebengine_resources_100p.pak new file mode 100644 index 0000000..cad2db1 Binary files /dev/null and b/C15S/Wallpaper3/resources/qtwebengine_resources_100p.pak differ diff --git a/C15S/Wallpaper3/resources/qtwebengine_resources_200p.pak b/C15S/Wallpaper3/resources/qtwebengine_resources_200p.pak new file mode 100644 index 0000000..9455a1c Binary files /dev/null and b/C15S/Wallpaper3/resources/qtwebengine_resources_200p.pak differ diff --git a/C15S/Wallpaper3/source/Wallpaper.pro b/C15S/Wallpaper3/source/Wallpaper.pro new file mode 100644 index 0000000..a61554c --- /dev/null +++ b/C15S/Wallpaper3/source/Wallpaper.pro @@ -0,0 +1,39 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2018-06-05T20:29:07 +# +#------------------------------------------------- + +QT += core gui +QT += webenginewidgets +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = Wallpaper +TEMPLATE = app +LIBS += -luser32 + +# The following define makes your compiler emit warnings if you use +# any feature of Qt which as been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +msvc:QMAKE_CXXFLAGS += -execution-charset:utf-8 +win32:RC_FILE = icon.rc + +SOURCES += main.cpp\ + wallpaper.cpp \ + utils.cpp + +HEADERS += wallpaper.h \ + utils.h + +FORMS += wallpaper.ui + +RESOURCES += \ + icon.qrc diff --git a/C15S/Wallpaper3/source/Wallpaper.pro.user b/C15S/Wallpaper3/source/Wallpaper.pro.user new file mode 100644 index 0000000..d298960 --- /dev/null +++ b/C15S/Wallpaper3/source/Wallpaper.pro.user @@ -0,0 +1,318 @@ + + + + + + EnvironmentId + {df7d0d03-f592-42bc-b6fb-fdb6f280c8cf} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + Desktop Qt 5.8.0 MSVC2015 32bit + Desktop Qt 5.8.0 MSVC2015 32bit + qt.58.win32_msvc2015_kit + 1 + 0 + 0 + + C:/Users/pc/Desktop/Wallpaper/build-Wallpaper-Desktop_Qt_5_8_0_MSVC2015_32bit-Debug + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + true + + + C:/Users/pc/Desktop/Wallpaper/build-Wallpaper-Desktop_Qt_5_8_0_MSVC2015_32bit-Release + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + + C:/Users/pc/Desktop/Wallpaper/build-Wallpaper-Desktop_Qt_5_8_0_MSVC2015_32bit-Profile + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + true + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Profile + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 3 + + + 0 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy locally + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + Wallpaper + + Qt4ProjectManager.Qt4RunConfiguration:C:/Users/pc/Desktop/Wallpaper/Wallpaper/Wallpaper.pro + true + + Wallpaper.pro + false + + C:/Users/pc/Desktop/Wallpaper/build-Wallpaper-Desktop_Qt_5_8_0_MSVC2015_32bit-Release + 3768 + false + true + false + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 18 + + + Version + 18 + + diff --git a/C15S/Wallpaper3/source/background.cpp b/C15S/Wallpaper3/source/background.cpp new file mode 100644 index 0000000..b2100aa --- /dev/null +++ b/C15S/Wallpaper3/source/background.cpp @@ -0,0 +1,17 @@ +#include "background.h" +#include "utils.h" + +using namespace std; + +background::background(QWidget *parent) : + QWebEngineView(parent) +{ + this->setObjectName("background"); + this->setWindowFlags(Qt::Window|Qt::FramelessWindowHint|Qt::CoverWindow|Qt::WindowStaysOnBottomHint); + this->setWindowState(Qt::WindowNoState); + this->setFocusPolicy(Qt::NoFocus); + this->setUrl(QUrl("http://10.21.40.155/worldSkillCountDown/")); + SetParent((HWND)this->winId(),Utils::GetWorkerW()); + this->showFullScreen(); +} + diff --git a/C15S/Wallpaper3/source/background.h b/C15S/Wallpaper3/source/background.h new file mode 100644 index 0000000..5c46e21 --- /dev/null +++ b/C15S/Wallpaper3/source/background.h @@ -0,0 +1,14 @@ +#ifndef BACKGROUND_H +#define BACKGROUND_H + +#include +#include + +class background : public QWebEngineView +{ + Q_OBJECT + public: + explicit background(QWidget *parent = 0); +}; + +#endif // BACKGROUND_H diff --git a/C15S/Wallpaper3/source/icon.ico b/C15S/Wallpaper3/source/icon.ico new file mode 100644 index 0000000..2a637f0 Binary files /dev/null and b/C15S/Wallpaper3/source/icon.ico differ diff --git a/C15S/Wallpaper3/source/icon.png b/C15S/Wallpaper3/source/icon.png new file mode 100644 index 0000000..97e9039 Binary files /dev/null and b/C15S/Wallpaper3/source/icon.png differ diff --git a/C15S/Wallpaper3/source/icon.qrc b/C15S/Wallpaper3/source/icon.qrc new file mode 100644 index 0000000..17b9ea8 --- /dev/null +++ b/C15S/Wallpaper3/source/icon.qrc @@ -0,0 +1,5 @@ + + + icon.png + + diff --git a/C15S/Wallpaper3/source/icon.rc b/C15S/Wallpaper3/source/icon.rc new file mode 100644 index 0000000..59109dc --- /dev/null +++ b/C15S/Wallpaper3/source/icon.rc @@ -0,0 +1 @@ +IDI_ICON1 ICON DISCARDABLE "icon.ico" \ No newline at end of file diff --git a/C15S/Wallpaper3/source/main.cpp b/C15S/Wallpaper3/source/main.cpp new file mode 100644 index 0000000..c2a204e --- /dev/null +++ b/C15S/Wallpaper3/source/main.cpp @@ -0,0 +1,9 @@ +#include "wallpaper.h" +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + Wallpaper w; + return a.exec(); +} diff --git a/C15S/Wallpaper3/source/utils.cpp b/C15S/Wallpaper3/source/utils.cpp new file mode 100644 index 0000000..bd26ec2 --- /dev/null +++ b/C15S/Wallpaper3/source/utils.cpp @@ -0,0 +1,23 @@ +#include +#include + +HWND workerw = nullptr; +inline BOOL CALLBACK EnumWindowsProc(_In_ HWND tophandle, _In_ LPARAM topparamhandle) +{ + if (FindWindowEx(tophandle, 0, L"SHELLDLL_DefView", nullptr) != nullptr) + { + workerw = FindWindowEx(0, tophandle, L"WorkerW", 0); + } + return true; +} + +HWND Utils::GetWorkerW(){ + int res; + HWND windowHandle = FindWindow(L"Progman", nullptr); + SendMessageTimeout(windowHandle, 0x52c, 0 ,0, SMTO_NORMAL, 0x3e8,(PDWORD_PTR)&res); + res=0; + EnumWindows(EnumWindowsProc,(LPARAM)&res); + qDebug()< + +namespace Utils { + +HWND GetWorkerW(); + +} +#endif // UTILS_H diff --git a/C15S/Wallpaper3/source/wallpaper.cpp b/C15S/Wallpaper3/source/wallpaper.cpp new file mode 100644 index 0000000..8f87156 --- /dev/null +++ b/C15S/Wallpaper3/source/wallpaper.cpp @@ -0,0 +1,184 @@ +#include "wallpaper.h" +#include "ui_wallpaper.h" +#include "utils.h" +#include +#include +#include +#include + +using namespace std; + +Wallpaper::Wallpaper(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::Wallpaper) +{ + ui->setupUi(this); + this->init(); + + mSysTrayIcon = new QSystemTrayIcon(this); + QIcon icon = QIcon(":/images/icon.png"); + mSysTrayIcon->setIcon(icon); + mSysTrayIcon->setToolTip("Wallpaper"); + connect(mSysTrayIcon,SIGNAL(activated(QSystemTrayIcon::ActivationReason)),this,SLOT(on_activatedSysTrayIcon(QSystemTrayIcon::ActivationReason))); + createActions(); + createMenu(); + mSysTrayIcon->show(); + + QWebEngineProfile::NoCache; + view = new QWebEngineView(); + view->setWindowFlags(Qt::Window|Qt::FramelessWindowHint|Qt::CoverWindow|Qt::WindowStaysOnBottomHint); + view->setWindowState(Qt::WindowNoState); + view->setFocusPolicy(Qt::NoFocus); + SetParent((HWND)view->winId(),Utils::GetWorkerW()); + view->setUrl(QUrl(QString(obj["path"].toString()))); + view->showFullScreen(); + this->show(); +} + + +void Wallpaper::init() +{ + QFile file("config.json"); + if(!file.exists()) + { + if(!file.open(QIODevice::WriteOnly)) + { + qDebug() << "write json file failed"; + }else + { + obj.insert("path","http://10.21.40.155/worldSkillCountDown/"); + obj.insert("layout","firstButton"); + QJsonDocument document; + document.setObject(obj); + QByteArray byte_array = document.toJson(QJsonDocument::Compact); + file.write(byte_array); + } + } + + if(file.open(QIODevice::ReadOnly)) + { + QByteArray data = file.readAll(); + QJsonParseError e; + QJsonDocument jsonDoc = QJsonDocument::fromJson(data,&e); + if(e.error == QJsonParseError::NoError && !jsonDoc.isNull()) + { + obj = jsonDoc.object(); + ui->filePath->setText(QString(obj["path"].toString())); + } + } + file.close(); +} + +void Wallpaper::closeEvent(QCloseEvent *event) +{ + this->hide(); +} + + +void Wallpaper::on_activatedSysTrayIcon(QSystemTrayIcon::ActivationReason reason) +{ + switch(reason){ + case QSystemTrayIcon::Trigger: + this->show(); + break; + case QSystemTrayIcon::DoubleClick: + this->show(); + break; + default: + break; + } +} + +void Wallpaper::createActions() +{ + mShowWindow = new QAction(QObject::trUtf8("显示程序"),this); + connect(mShowWindow,SIGNAL(triggered()),SLOT(on_showMainAction())); + mExitAppAction = new QAction(QObject::trUtf8("退出程序"),this); + connect(mExitAppAction,SIGNAL(triggered()),this,SLOT(on_exitAppAction())); +} + + +void Wallpaper::on_showMainAction() +{ + this->show(); +} + +void Wallpaper::on_exitAppAction() +{ + QFile file("config.json"); + if(!file.open(QIODevice::WriteOnly)) + { + qDebug() << "write json file failed"; + }else + { + QJsonDocument document; + document.setObject(obj); + QByteArray byte_array = document.toJson(QJsonDocument::Compact); + file.write(byte_array); + } + file.close(); + exit(0); +} + + +void Wallpaper::createMenu() +{ + mMenu = new QMenu(this); + mMenu->addAction(mShowWindow); + mMenu->addAction(mExitAppAction); + mMenu->setStyleSheet("QMenu{color:black;border-bottom:1px solid #ccc;}"); + mSysTrayIcon->setContextMenu(mMenu); +} + + +Wallpaper::~Wallpaper() +{ + delete ui; + delete view; +} + +void Wallpaper::on_path_button_clicked() +{ + QString path = QFileDialog::getOpenFileName(this); + ui->filePath->setText(path); +} + + +void Wallpaper::on_startButton_clicked() +{ + QString new_path = ui->filePath->text(); + obj["path"] = new_path; + view->setUrl(QUrl(new_path)); +} + +void Wallpaper::on_fillButton_clicked() +{ + QDesktopWidget *desktop = QApplication::desktop(); + view->move(QPoint(0,0)); + int height = desktop->height(); + int width = desktop->width(); + view->resize(QSize(width,height)); +} + +void Wallpaper::on_secondButton_clicked() +{ + QDesktopWidget *desktop = QApplication::desktop(); + QRect size_first = desktop->screenGeometry(0); + int width_first = size_first.width(); + view->move(QPoint(width_first,0)); + + QRect size = desktop->screenGeometry(1); + int height = size.height(); + int width = size.width(); + view->resize(QSize(width,height)); +} + +void Wallpaper::on_firstButton_clicked() +{ + QDesktopWidget *desktop = QApplication::desktop(); + view->move(QPoint(0,0)); + QRect size = desktop->screenGeometry(0); + int height = size.height(); + int width = size.width(); + view->resize(QSize(width,height)); +} diff --git a/C15S/Wallpaper3/source/wallpaper.h b/C15S/Wallpaper3/source/wallpaper.h new file mode 100644 index 0000000..c3876e5 --- /dev/null +++ b/C15S/Wallpaper3/source/wallpaper.h @@ -0,0 +1,46 @@ +#ifndef WALLPAPER_H +#define WALLPAPER_H + +#include +#include +#include "background.h" +#include +#include + +namespace Ui { + class Wallpaper; +} + +class Wallpaper : public QMainWindow +{ + Q_OBJECT +public: + explicit Wallpaper(QWidget *parent = 0); + ~Wallpaper(); +public: + void createActions(); + void createMenu(); +public: + QSystemTrayIcon *mSysTrayIcon; + QMenu *mMenu; + QAction *mShowWindow; + QAction *mExitAppAction; + +private slots: + void on_path_button_clicked(); + void on_startButton_clicked(); + void on_fillButton_clicked(); + void on_secondButton_clicked(); + void on_firstButton_clicked(); + void on_activatedSysTrayIcon(QSystemTrayIcon::ActivationReason reason); + void on_showMainAction(); + void on_exitAppAction(); +private: + Ui::Wallpaper *ui; + QWebEngineView *view; + QJsonObject obj; + void closeEvent(QCloseEvent *event); + void init(); +}; + +#endif // WALLPAPER_H diff --git a/C15S/Wallpaper3/source/wallpaper.ui b/C15S/Wallpaper3/source/wallpaper.ui new file mode 100644 index 0000000..e05ed09 --- /dev/null +++ b/C15S/Wallpaper3/source/wallpaper.ui @@ -0,0 +1,326 @@ + + + Wallpaper + + + + 0 + 0 + 900 + 600 + + + + + 900 + 600 + + + + + 900 + 600 + + + + Qt::NoFocus + + + Wallpaper + + + + :/images/icon.png:/images/icon.png + + + background-color:rgb(255, 255, 255);padding:0px;margin:0px;border:none; + + + Qt::ImhNone + + + + + + 600 + 0 + 300 + 600 + + + + #toolbox{ + border-left:1px solid #ccc; +} + + + + + 10 + 170 + 91 + 21 + + + + font-size:14px; + + + 布局方式: + + + + + + 9 + 0 + 291 + 60 + + + + + 300 + 60 + + + + Qt::LeftToRight + + + false + + + font-size:20px + + + Html5 Wallpaper Engine + + + Qt::AlignCenter + + + + + + 10 + 200 + 281 + 31 + + + + + 0 + + + 0 + + + + + + 60 + 30 + + + + + 10 + + + + 1 + + + 填充 + + + + + + + true + + + + 60 + 30 + + + + + 10 + + + + 首屏 + + + true + + + + + + + + 60 + 30 + + + + + 10 + + + + 次屏 + + + + + + + + + 10 + 110 + 281 + 41 + + + + + 0 + + + 0 + + + + + + 60 + 30 + + + + + 200 + 30 + + + + border:1px solid #ccc; + + + + + + + + 0 + 30 + + + + + 100 + 30 + + + + background-color:rgb(83, 83, 83);border-radius:3px;color:white;font-size:12px;font-family:"微软雅黑"; + + + 选择路径 + + + + + + + + + 10 + 80 + 90 + 20 + + + + font-size:14px; + + + 文件路径/URL: + + + + + + 30 + 510 + 250 + 40 + + + + + 250 + 40 + + + + background-color:rgb(255, 170, 0);color:white;border-radius:5px;border:none;font-size:16px; + + + start + + + + + + + + + + + + startButton + clicked() + Wallpaper + createBackground() + + + 237 + 220 + + + 277 + 251 + + + + + path_button + clicked() + Wallpaper + chooseHtmlPath() + + + 386 + 149 + + + 408 + 212 + + + + + + chooseHtmlPath() + createBackground() + + diff --git "a/C15S/Wallpaper3/source/\345\216\237\347\220\206\345\233\276/DrawBehindDesktopIcons3.png" "b/C15S/Wallpaper3/source/\345\216\237\347\220\206\345\233\276/DrawBehindDesktopIcons3.png" new file mode 100644 index 0000000..a406cd2 Binary files /dev/null and "b/C15S/Wallpaper3/source/\345\216\237\347\220\206\345\233\276/DrawBehindDesktopIcons3.png" differ diff --git "a/C15S/Wallpaper3/source/\345\216\237\347\220\206\345\233\276/url.txt" "b/C15S/Wallpaper3/source/\345\216\237\347\220\206\345\233\276/url.txt" new file mode 100644 index 0000000..61b2a0c --- /dev/null +++ "b/C15S/Wallpaper3/source/\345\216\237\347\220\206\345\233\276/url.txt" @@ -0,0 +1,3 @@ +https://paperplanes.world/ +http://carvisualizer.plus360degrees.com/threejs/ +http://10.21.40.216/myCanvas/ \ No newline at end of file diff --git "a/C15S/Wallpaper3/source/\345\216\237\347\220\206\345\233\276/v2-28166b08e1005b4247982005baba43fe_hd.jpg" "b/C15S/Wallpaper3/source/\345\216\237\347\220\206\345\233\276/v2-28166b08e1005b4247982005baba43fe_hd.jpg" new file mode 100644 index 0000000..1c6f29e Binary files /dev/null and "b/C15S/Wallpaper3/source/\345\216\237\347\220\206\345\233\276/v2-28166b08e1005b4247982005baba43fe_hd.jpg" differ diff --git a/C15S/Wallpaper3/translations/qt_ca.qm b/C15S/Wallpaper3/translations/qt_ca.qm new file mode 100644 index 0000000..e2149f5 Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_ca.qm differ diff --git a/C15S/Wallpaper3/translations/qt_cs.qm b/C15S/Wallpaper3/translations/qt_cs.qm new file mode 100644 index 0000000..1dca943 Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_cs.qm differ diff --git a/C15S/Wallpaper3/translations/qt_de.qm b/C15S/Wallpaper3/translations/qt_de.qm new file mode 100644 index 0000000..7ce39a3 Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_de.qm differ diff --git a/C15S/Wallpaper3/translations/qt_en.qm b/C15S/Wallpaper3/translations/qt_en.qm new file mode 100644 index 0000000..9dad8df Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_en.qm differ diff --git a/C15S/Wallpaper3/translations/qt_fi.qm b/C15S/Wallpaper3/translations/qt_fi.qm new file mode 100644 index 0000000..5a76279 Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_fi.qm differ diff --git a/C15S/Wallpaper3/translations/qt_fr.qm b/C15S/Wallpaper3/translations/qt_fr.qm new file mode 100644 index 0000000..8e6bad6 Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_fr.qm differ diff --git a/C15S/Wallpaper3/translations/qt_he.qm b/C15S/Wallpaper3/translations/qt_he.qm new file mode 100644 index 0000000..e86e9c8 Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_he.qm differ diff --git a/C15S/Wallpaper3/translations/qt_hu.qm b/C15S/Wallpaper3/translations/qt_hu.qm new file mode 100644 index 0000000..ae47a4b Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_hu.qm differ diff --git a/C15S/Wallpaper3/translations/qt_it.qm b/C15S/Wallpaper3/translations/qt_it.qm new file mode 100644 index 0000000..0d9d17d Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_it.qm differ diff --git a/C15S/Wallpaper3/translations/qt_ja.qm b/C15S/Wallpaper3/translations/qt_ja.qm new file mode 100644 index 0000000..81710a3 Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_ja.qm differ diff --git a/C15S/Wallpaper3/translations/qt_ko.qm b/C15S/Wallpaper3/translations/qt_ko.qm new file mode 100644 index 0000000..6925bfa Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_ko.qm differ diff --git a/C15S/Wallpaper3/translations/qt_lv.qm b/C15S/Wallpaper3/translations/qt_lv.qm new file mode 100644 index 0000000..14b6764 Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_lv.qm differ diff --git a/C15S/Wallpaper3/translations/qt_pl.qm b/C15S/Wallpaper3/translations/qt_pl.qm new file mode 100644 index 0000000..8bd0a96 Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_pl.qm differ diff --git a/C15S/Wallpaper3/translations/qt_ru.qm b/C15S/Wallpaper3/translations/qt_ru.qm new file mode 100644 index 0000000..50f1117 Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_ru.qm differ diff --git a/C15S/Wallpaper3/translations/qt_sk.qm b/C15S/Wallpaper3/translations/qt_sk.qm new file mode 100644 index 0000000..c23fc83 Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_sk.qm differ diff --git a/C15S/Wallpaper3/translations/qt_uk.qm b/C15S/Wallpaper3/translations/qt_uk.qm new file mode 100644 index 0000000..cfb4fec Binary files /dev/null and b/C15S/Wallpaper3/translations/qt_uk.qm differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/am.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/am.pak new file mode 100644 index 0000000..78c1a08 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/am.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/ar.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/ar.pak new file mode 100644 index 0000000..ab3b8a5 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/ar.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/bg.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/bg.pak new file mode 100644 index 0000000..6642c6a Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/bg.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/bn.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/bn.pak new file mode 100644 index 0000000..daddfdf Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/bn.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/ca.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/ca.pak new file mode 100644 index 0000000..3451480 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/ca.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/cs.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/cs.pak new file mode 100644 index 0000000..14ed44c Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/cs.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/da.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/da.pak new file mode 100644 index 0000000..9ff30a8 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/da.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/de.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/de.pak new file mode 100644 index 0000000..f62c90e Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/de.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/el.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/el.pak new file mode 100644 index 0000000..82de6cd Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/el.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/en-GB.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/en-GB.pak new file mode 100644 index 0000000..a72b5ba Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/en-GB.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/en-US.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/en-US.pak new file mode 100644 index 0000000..f2f3d35 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/en-US.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/es-419.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/es-419.pak new file mode 100644 index 0000000..cbb9bd9 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/es-419.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/es.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/es.pak new file mode 100644 index 0000000..a7cfec1 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/es.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/et.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/et.pak new file mode 100644 index 0000000..37699cd Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/et.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/fa.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/fa.pak new file mode 100644 index 0000000..2da8ee7 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/fa.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/fi.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/fi.pak new file mode 100644 index 0000000..aee8c32 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/fi.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/fil.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/fil.pak new file mode 100644 index 0000000..25f79cd Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/fil.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/fr.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/fr.pak new file mode 100644 index 0000000..1e45ce0 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/fr.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/gu.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/gu.pak new file mode 100644 index 0000000..1b43a3a Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/gu.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/he.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/he.pak new file mode 100644 index 0000000..a98e3f0 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/he.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/hi.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/hi.pak new file mode 100644 index 0000000..49e1731 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/hi.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/hr.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/hr.pak new file mode 100644 index 0000000..b8cbfe5 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/hr.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/hu.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/hu.pak new file mode 100644 index 0000000..3fe6ef2 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/hu.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/id.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/id.pak new file mode 100644 index 0000000..8c98dcb Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/id.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/it.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/it.pak new file mode 100644 index 0000000..7be48f5 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/it.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/ja.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/ja.pak new file mode 100644 index 0000000..b02b1b0 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/ja.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/kn.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/kn.pak new file mode 100644 index 0000000..e851c5e Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/kn.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/ko.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/ko.pak new file mode 100644 index 0000000..9485805 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/ko.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/lt.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/lt.pak new file mode 100644 index 0000000..dfc8354 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/lt.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/lv.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/lv.pak new file mode 100644 index 0000000..0eb3333 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/lv.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/ml.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/ml.pak new file mode 100644 index 0000000..0f899c2 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/ml.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/mr.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/mr.pak new file mode 100644 index 0000000..cba674a Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/mr.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/ms.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/ms.pak new file mode 100644 index 0000000..cee4995 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/ms.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/nb.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/nb.pak new file mode 100644 index 0000000..2664f5f Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/nb.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/nl.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/nl.pak new file mode 100644 index 0000000..ea685b8 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/nl.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/pl.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/pl.pak new file mode 100644 index 0000000..48ad8e3 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/pl.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/pt-BR.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/pt-BR.pak new file mode 100644 index 0000000..66b392a Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/pt-BR.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/pt-PT.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/pt-PT.pak new file mode 100644 index 0000000..50c4d8e Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/pt-PT.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/ro.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/ro.pak new file mode 100644 index 0000000..9fd401f Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/ro.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/ru.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/ru.pak new file mode 100644 index 0000000..1be1886 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/ru.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/sk.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/sk.pak new file mode 100644 index 0000000..0fbfc36 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/sk.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/sl.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/sl.pak new file mode 100644 index 0000000..d5d0154 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/sl.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/sr.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/sr.pak new file mode 100644 index 0000000..135b4cb Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/sr.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/sv.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/sv.pak new file mode 100644 index 0000000..6b77eab Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/sv.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/sw.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/sw.pak new file mode 100644 index 0000000..c60e4d8 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/sw.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/ta.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/ta.pak new file mode 100644 index 0000000..456f2a7 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/ta.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/te.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/te.pak new file mode 100644 index 0000000..bf43b70 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/te.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/th.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/th.pak new file mode 100644 index 0000000..ef774aa Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/th.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/tr.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/tr.pak new file mode 100644 index 0000000..8017cbb Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/tr.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/uk.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/uk.pak new file mode 100644 index 0000000..a5c4803 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/uk.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/vi.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/vi.pak new file mode 100644 index 0000000..10c9799 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/vi.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/zh-CN.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/zh-CN.pak new file mode 100644 index 0000000..fe26819 Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/zh-CN.pak differ diff --git a/C15S/Wallpaper3/translations/qtwebengine_locales/zh-TW.pak b/C15S/Wallpaper3/translations/qtwebengine_locales/zh-TW.pak new file mode 100644 index 0000000..ffbe9ec Binary files /dev/null and b/C15S/Wallpaper3/translations/qtwebengine_locales/zh-TW.pak differ diff --git a/C15S/Wallpaper3/www/C8API.BAT b/C15S/Wallpaper3/www/C8API.BAT new file mode 100644 index 0000000..ef562b2 --- /dev/null +++ b/C15S/Wallpaper3/www/C8API.BAT @@ -0,0 +1,3 @@ +@echo off +cd C:\c8api\ +node14 .\index.js diff --git a/C15S/Wallpaper3/www/README.md b/C15S/Wallpaper3/www/README.md new file mode 100644 index 0000000..77449fb --- /dev/null +++ b/C15S/Wallpaper3/www/README.md @@ -0,0 +1,46 @@ +# 高三八班用户界面 +这是我们班的智能系统界面代码,包含动态壁纸,作业编辑器和标语编辑器,使用 vue 编写。可以通过简单的适配在任何教室使用 + +后端运行 [C8API](https://github.com/clansty/c8api),用于标语和作业的存取 +## 运行效果 +![](pic/6819830748384592397.jpg) +![](pic/6976F0086364F9E711F930227581F653.jpg) + +## 动态壁纸 wallpaper.html +运行效果图为动态壁纸界面,我们通过 Live2DViewerEx / 开源项目Wallpaper3 加载动态壁纸。可以使用任何支持使用网页做壁纸的动态壁纸软件 + +### 高考倒计时 +高考时间在 169 行定义 +```js +var gaokaoDate = Date.parse("2021-6-7"); +``` + +### 天气 +天气使用和风天气的 H5 控件,采用 iframe 引入。 + +对 CSS 与 JS 进行了一些修改来适配显示样式 + +通过 citycode 定义苏州的天气,位于 82 行 + +### API集成 +标语、作业和课表读取自 C8API + +## 作业看板 homework.html +![](pic/homework.jpg) + +作业看板方便大屏显示所有作业,每秒自动刷新一次 + +支持调整字体大小和编辑。在编辑框打开时自动刷新会停止 + +## 作业编辑器 homeworkwireless.html +![](pic/edit.png) + +这个编辑器设计的初衷本来是给手机端使用的。当扩展桌面配置后开始用于主屏编辑作业副屏显示 + +已经加入编辑时自动保存功能 + +## 标语编辑器 slogan.html +用于编辑桌面中间的标语,得益于 vue 的绑定,支持实时预览 + +## 咕咕机集成 +由于咕咕机的 API 出了亿点问题,集成暂时无法使用 \ No newline at end of file diff --git a/C15S/Wallpaper3/www/assets/axios.min.js b/C15S/Wallpaper3/www/assets/axios.min.js new file mode 100644 index 0000000..b87c0e3 --- /dev/null +++ b/C15S/Wallpaper3/www/assets/axios.min.js @@ -0,0 +1,3 @@ +/* axios v0.19.2 | (c) 2020 by Matt Zabriskie */ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.axios=t():e.axios=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e){var t=new s(e),n=i(s.prototype.request,t);return o.extend(n,s.prototype,t),o.extend(n,t),n}var o=n(2),i=n(3),s=n(4),a=n(22),u=n(10),c=r(u);c.Axios=s,c.create=function(e){return r(a(c.defaults,e))},c.Cancel=n(23),c.CancelToken=n(24),c.isCancel=n(9),c.all=function(e){return Promise.all(e)},c.spread=n(25),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";function r(e){return"[object Array]"===j.call(e)}function o(e){return"undefined"==typeof e}function i(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function s(e){return"[object ArrayBuffer]"===j.call(e)}function a(e){return"undefined"!=typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function c(e){return"string"==typeof e}function f(e){return"number"==typeof e}function p(e){return null!==e&&"object"==typeof e}function d(e){return"[object Date]"===j.call(e)}function l(e){return"[object File]"===j.call(e)}function h(e){return"[object Blob]"===j.call(e)}function m(e){return"[object Function]"===j.call(e)}function y(e){return p(e)&&m(e.pipe)}function g(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function v(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function w(e,t){if(null!==e&&"undefined"!=typeof e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){u.headers[e]={}}),i.forEach(["post","put","patch"],function(e){u.headers[e]=i.merge(a)}),e.exports=u},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(2),o=n(13),i=n(5),s=n(16),a=n(19),u=n(20),c=n(14);e.exports=function(e){return new Promise(function(t,f){var p=e.data,d=e.headers;r.isFormData(p)&&delete d["Content-Type"];var l=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password||"";d.Authorization="Basic "+btoa(h+":"+m)}var y=s(e.baseURL,e.url);if(l.open(e.method.toUpperCase(),i(y,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,l.onreadystatechange=function(){if(l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in l?a(l.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?l.response:l.responseText,i={data:r,status:l.status,statusText:l.statusText,headers:n,config:e,request:l};o(t,f,i),l=null}},l.onabort=function(){l&&(f(c("Request aborted",e,"ECONNABORTED",l)),l=null)},l.onerror=function(){f(c("Network Error",e,null,l)),l=null},l.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),f(c(t,e,"ECONNABORTED",l)),l=null},r.isStandardBrowserEnv()){var g=n(21),v=(e.withCredentials||u(y))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in l&&r.forEach(d,function(e,t){"undefined"==typeof p&&"content-type"===t.toLowerCase()?delete d[t]:l.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),e.responseType)try{l.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){l&&(l.abort(),f(e),l=null)}),void 0===p&&(p=null),l.send(p)})}},function(e,t,n){"use strict";var r=n(14);e.exports=function(e,t,n){var o=n.config.validateStatus;!o||o(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";var r=n(15);e.exports=function(e,t,n,o,i){var s=new Error(e);return r(s,t,n,o,i)}},function(e,t){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(17),o=n(18);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(2),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;"set-cookie"===t?s[t]=(s[t]?s[t]:[]).concat([n]):s[t]=s[t]?s[t]+", "+n:n}}),s):s}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){t=t||{};var n={},o=["url","method","params","data"],i=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(o,function(e){"undefined"!=typeof t[e]&&(n[e]=t[e])}),r.forEach(i,function(o){r.isObject(t[o])?n[o]=r.deepMerge(e[o],t[o]):"undefined"!=typeof t[o]?n[o]=t[o]:r.isObject(e[o])?n[o]=r.deepMerge(e[o]):"undefined"!=typeof e[o]&&(n[o]=e[o])}),r.forEach(s,function(r){"undefined"!=typeof t[r]?n[r]=t[r]:"undefined"!=typeof e[r]&&(n[r]=e[r])});var a=o.concat(i).concat(s),u=Object.keys(t).filter(function(e){return a.indexOf(e)===-1});return r.forEach(u,function(r){"undefined"!=typeof t[r]?n[r]=t[r]:"undefined"!=typeof e[r]&&(n[r]=e[r])}),n}},function(e,t){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}var o=n(23);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}}])}); +//# sourceMappingURL=axios.min.map \ No newline at end of file diff --git a/C15S/Wallpaper3/www/assets/element-icons.ttf b/C15S/Wallpaper3/www/assets/element-icons.ttf new file mode 100644 index 0000000..91b74de Binary files /dev/null and b/C15S/Wallpaper3/www/assets/element-icons.ttf differ diff --git a/C15S/Wallpaper3/www/assets/element-icons.woff b/C15S/Wallpaper3/www/assets/element-icons.woff new file mode 100644 index 0000000..02b9a25 Binary files /dev/null and b/C15S/Wallpaper3/www/assets/element-icons.woff differ diff --git a/C15S/Wallpaper3/www/assets/element.js b/C15S/Wallpaper3/www/assets/element.js new file mode 100644 index 0000000..6c64797 --- /dev/null +++ b/C15S/Wallpaper3/www/assets/element.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("ELEMENT",["vue"],t):"object"==typeof exports?exports.ELEMENT=t(require("vue")):e.ELEMENT=t(e.Vue)}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/dist/",i(i.s=49)}([function(t,i){t.exports=e},function(e,t,i){var n=i(4);e.exports=function(e,t,i){return void 0===i?n(e,t,!1):n(e,i,!1!==t)}},function(e,t,i){var n;!function(r){"use strict";var s={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,o="[^\\s]+",l=/\[([^]*?)\]/gm,u=function(){};function c(e,t){for(var i=[],n=0,r=e.length;n3?0:(e-e%10!=10)*e%10]}};var g={D:function(e){return e.getDay()},DD:function(e){return d(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return d(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return d(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return d(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return d(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return d(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return d(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return d(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return d(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return d(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return d(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+d(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},b={d:["\\d\\d?",function(e,t){e.day=t}],Do:["\\d\\d?"+o,function(e,t){e.day=parseInt(t,10)}],M:["\\d\\d?",function(e,t){e.month=t-1}],yy:["\\d\\d?",function(e,t){var i=+(""+(new Date).getFullYear()).substr(0,2);e.year=""+(t>68?i-1:i)+t}],h:["\\d\\d?",function(e,t){e.hour=t}],m:["\\d\\d?",function(e,t){e.minute=t}],s:["\\d\\d?",function(e,t){e.second=t}],yyyy:["\\d{4}",function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:["\\d{3}",function(e,t){e.millisecond=t}],D:["\\d\\d?",u],ddd:[o,u],MMM:[o,h("monthNamesShort")],MMMM:[o,h("monthNames")],a:[o,function(e,t,i){var n=t.toLowerCase();n===i.amPm[0]?e.isPm=!1:n===i.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var i,n=(t+"").match(/([+-]|\d\d)/gi);n&&(i=60*n[1]+parseInt(n[2],10),e.timezoneOffset="+"===n[0]?i:-i)}]};b.dd=b.d,b.dddd=b.ddd,b.DD=b.D,b.mm=b.m,b.hh=b.H=b.HH=b.h,b.MM=b.M,b.ss=b.s,b.A=b.a,s.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},s.format=function(e,t,i){var n=i||s.i18n;if("number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=s.masks[t]||t||s.masks.default;var r=[];return(t=(t=t.replace(l,function(e,t){return r.push(t),"@@@"})).replace(a,function(t){return t in g?g[t](e,n):t.slice(1,t.length-1)})).replace(/@@@/g,function(){return r.shift()})},s.parse=function(e,t,i){var n=i||s.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=s.masks[t]||t,e.length>1e3)return null;var r={},o=[],u=[];t=t.replace(l,function(e,t){return u.push(t),"@@@"});var c,h=(c=t,c.replace(/[|\\{()[^$+*?.-]/g,"\\$&")).replace(a,function(e){if(b[e]){var t=b[e];return o.push(t[1]),"("+t[0]+")"}return e});h=h.replace(/@@@/g,function(){return u.shift()});var d=e.match(new RegExp(h,"i"));if(!d)return null;for(var p=1;pe?u():!0!==t&&(r=setTimeout(n?function(){r=void 0}:u,void 0===n?e-o:e))}}},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t){var i=/^(attrs|props|on|nativeOn|class|style|hook)$/;function n(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce(function(e,t){var r,s,a,o,l;for(a in t)if(r=e[a],s=t[a],r&&i.test(a))if("class"===a&&("string"==typeof r&&(l=r,e[a]=r={},r[l]=!0),"string"==typeof s&&(l=s,t[a]=s={},s[l]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(o in s)r[o]=n(r[o],s[o]);else if(Array.isArray(r))e[a]=r.concat(s);else if(Array.isArray(s))e[a]=[r].concat(s);else for(o in s)r[o]=s[o];else e[a]=t[a];return e},{})}},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){"use strict";t.__esModule=!0;var n,r=i(56),s=(n=r)&&n.__esModule?n:{default:n};t.default=s.default||function(e){for(var t=1;t0?n:i)(e)}},function(e,t,i){var n=i(28)("keys"),r=i(21);e.exports=function(e){return n[e]||(n[e]=r(e))}},function(e,t,i){var n=i(14),r=i(5),s=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:i(20)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports={}},function(e,t,i){var n=i(10).f,r=i(7),s=i(13)("toStringTag");e.exports=function(e,t,i){e&&!r(e=i?e:e.prototype,s)&&n(e,s,{configurable:!0,value:t})}},function(e,t,i){t.f=i(13)},function(e,t,i){var n=i(5),r=i(14),s=i(20),a=i(33),o=i(10).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=s?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||o(t,e,{value:a.f(e)})}},function(e,t,i){var n=i(4),r=i(1);e.exports={throttle:n,debounce:r}},function(e,t,i){e.exports=!i(11)&&!i(16)(function(){return 7!=Object.defineProperty(i(37)("div"),"a",{get:function(){return 7}}).a})},function(e,t,i){var n=i(15),r=i(5).document,s=n(r)&&n(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},function(e,t,i){var n=i(7),r=i(12),s=i(62)(!1),a=i(27)("IE_PROTO");e.exports=function(e,t){var i,o=r(e),l=0,u=[];for(i in o)i!=a&&n(o,i)&&u.push(i);for(;t.length>l;)n(o,i=t[l++])&&(~s(u,i)||u.push(i));return u}},function(e,t,i){var n=i(40);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t,i){var n=i(25);e.exports=function(e){return Object(n(e))}},function(e,t,i){"use strict";var n=i(20),r=i(23),s=i(43),a=i(9),o=i(31),l=i(69),u=i(32),c=i(72),h=i(13)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,i,f,m,v,g){l(i,t,f);var b,y,w,_=function(e){if(!d&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new i(this,e)}}return function(){return new i(this,e)}},x=t+" Iterator",C="values"==m,k=!1,S=e.prototype,D=S[h]||S["@@iterator"]||m&&S[m],$=D||_(m),E=m?C?_("entries"):$:void 0,T="Array"==t&&S.entries||D;if(T&&(w=c(T.call(new e)))!==Object.prototype&&w.next&&(u(w,x,!0),n||"function"==typeof w[h]||a(w,h,p)),C&&D&&"values"!==D.name&&(k=!0,$=function(){return D.call(this)}),n&&!g||!d&&!k&&S[h]||a(S,h,$),o[t]=$,o[x]=p,m)if(b={values:C?$:_("values"),keys:v?$:_("keys"),entries:E},g)for(y in b)y in S||s(S,y,b[y]);else r(r.P+r.F*(d||k),t,b);return b}},function(e,t,i){e.exports=i(9)},function(e,t,i){var n=i(17),r=i(70),s=i(29),a=i(27)("IE_PROTO"),o=function(){},l=function(){var e,t=i(37)("iframe"),n=s.length;for(t.style.display="none",i(71).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" + + + + + + \ No newline at end of file diff --git a/C15S/Wallpaper3/www/homework.html b/C15S/Wallpaper3/www/homework.html new file mode 100644 index 0000000..2cd8bcc --- /dev/null +++ b/C15S/Wallpaper3/www/homework.html @@ -0,0 +1,356 @@ + + + + + + + + + + 高三八班作业看板 + + + + + + +
+ + + +
+ 语文 +
+
+
{{hw.c}}
+
+
+ +
+ 数学 +
+
+
{{hw.m}}
+
+
+ +
+ 班务 +
+
+
{{hw.z}}
+
+
+
+ + +
+ 英语 +
+
+
{{hw.e}}
+
+
+ +
+ 物理 +
+
+
{{hw.p}}
+
+
+ +
+ 生物 +
+
+
{{hw.b}}
+
+
+
+
+ +

语文作业

+ +

数学作业

+ +

英语作业

+ +

物理作业

+ +

生物作业

+ +

班务

+ +
+ +

+ +

+

+ 份数 + +

+

+ 打印 +

+
+
+

+ +

+

+ +

+

+ +

+

+ +

+

+ +

+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/C15S/Wallpaper3/www/homeworkwireless.html b/C15S/Wallpaper3/www/homeworkwireless.html new file mode 100644 index 0000000..040c97f --- /dev/null +++ b/C15S/Wallpaper3/www/homeworkwireless.html @@ -0,0 +1,261 @@ + + + + + + + + + + 高三八班移动作业编辑器 + + + + + + +
+ + +

语文作业

+ +

数学作业

+ +

英语作业

+ +

物理作业

+ +

生物作业

+ +

班务

+ +

字体大小

+ +

+ + 打印 +

+
+
+ +

+ +

+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/C15S/Wallpaper3/www/index.html b/C15S/Wallpaper3/www/index.html new file mode 100644 index 0000000..28e0e2b --- /dev/null +++ b/C15S/Wallpaper3/www/index.html @@ -0,0 +1,315 @@ + + + + + + + + + + + + + +
+ + + + +

{{month}} {{date}}

+

距离高考 {{gkcd}}

+
+ +
+ +
+
+
+ +
{{slogan.content}}
+

——{{slogan.speaker}}

+
+ + +
+

语文

+
{{hw.c}}
+

数学

+
{{hw.m}}
+

英语

+
{{hw.e}}
+

地理

+
{{hw.p}}
+

生物

+
{{hw.b}}
+

历史

+
{{hw.z}}
+
+
+ +
+

{{ke}}

+
+
+
+

昨日值日:

+

{{ptb}}

+

值日:

+

{{tb}}

+
+
+ +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/C15S/Wallpaper3/www/pic/111.jpg b/C15S/Wallpaper3/www/pic/111.jpg new file mode 100644 index 0000000..ba3c1ca Binary files /dev/null and b/C15S/Wallpaper3/www/pic/111.jpg differ diff --git a/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db1.jpeg b/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db1.jpeg new file mode 100644 index 0000000..f7e43f9 Binary files /dev/null and b/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db1.jpeg differ diff --git a/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db1.kra b/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db1.kra new file mode 100644 index 0000000..dd21dea Binary files /dev/null and b/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db1.kra differ diff --git a/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db1.kra~ b/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db1.kra~ new file mode 100644 index 0000000..64b100b Binary files /dev/null and b/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db1.kra~ differ diff --git a/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db2.jpeg b/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db2.jpeg new file mode 100644 index 0000000..1913030 Binary files /dev/null and b/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db2.jpeg differ diff --git a/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db2.jpeg~ b/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db2.jpeg~ new file mode 100644 index 0000000..4b9fc0c Binary files /dev/null and b/C15S/Wallpaper3/www/pic/6593288232e14bd1b458f6cf52c97db2.jpeg~ differ diff --git a/C15S/Wallpaper3/www/pic/6769923365491704333.jpg b/C15S/Wallpaper3/www/pic/6769923365491704333.jpg new file mode 100644 index 0000000..e31f485 Binary files /dev/null and b/C15S/Wallpaper3/www/pic/6769923365491704333.jpg differ diff --git a/C15S/Wallpaper3/www/pic/6769923657151021582.jpg b/C15S/Wallpaper3/www/pic/6769923657151021582.jpg new file mode 100644 index 0000000..6dc78bc Binary files /dev/null and b/C15S/Wallpaper3/www/pic/6769923657151021582.jpg differ diff --git a/C15S/Wallpaper3/www/pic/6772854194966626830.jpg b/C15S/Wallpaper3/www/pic/6772854194966626830.jpg new file mode 100644 index 0000000..7b750c6 Binary files /dev/null and b/C15S/Wallpaper3/www/pic/6772854194966626830.jpg differ diff --git a/C15S/Wallpaper3/www/pic/6819830748384592397.jpg b/C15S/Wallpaper3/www/pic/6819830748384592397.jpg new file mode 100644 index 0000000..12cfce3 Binary files /dev/null and b/C15S/Wallpaper3/www/pic/6819830748384592397.jpg differ diff --git a/C15S/Wallpaper3/www/pic/OHR.CorfeDorset_ZH-CN8002715956_UHD.jpg b/C15S/Wallpaper3/www/pic/OHR.CorfeDorset_ZH-CN8002715956_UHD.jpg new file mode 100644 index 0000000..1549eaa Binary files /dev/null and b/C15S/Wallpaper3/www/pic/OHR.CorfeDorset_ZH-CN8002715956_UHD.jpg differ diff --git a/C15S/Wallpaper3/www/pic/bg.jpg b/C15S/Wallpaper3/www/pic/bg.jpg new file mode 100644 index 0000000..7ca9878 Binary files /dev/null and b/C15S/Wallpaper3/www/pic/bg.jpg differ diff --git a/C15S/Wallpaper3/www/pic/blank.jpg b/C15S/Wallpaper3/www/pic/blank.jpg new file mode 100644 index 0000000..9700a04 Binary files /dev/null and b/C15S/Wallpaper3/www/pic/blank.jpg differ diff --git a/C15S/Wallpaper3/www/pic/edit.png b/C15S/Wallpaper3/www/pic/edit.png new file mode 100644 index 0000000..49c511b Binary files /dev/null and b/C15S/Wallpaper3/www/pic/edit.png differ diff --git a/C15S/Wallpaper3/www/pic/homework.jpg b/C15S/Wallpaper3/www/pic/homework.jpg new file mode 100644 index 0000000..73b2272 Binary files /dev/null and b/C15S/Wallpaper3/www/pic/homework.jpg differ diff --git a/C15S/Wallpaper3/www/sloganedit.html b/C15S/Wallpaper3/www/sloganedit.html new file mode 100644 index 0000000..3e56ae2 --- /dev/null +++ b/C15S/Wallpaper3/www/sloganedit.html @@ -0,0 +1,132 @@ + + + + + + + + + + 高三八班标语编辑器 + + + + + + +
+ + +

标语内容

+ +

字体大小

+ +

作者

+ +

字体大小

+ +
+ +
{{slogan.content}}
+

——{{slogan.speaker}}

+
+ +

+ 保存 +

+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/C15S/Wallpaper3/www/weather.html b/C15S/Wallpaper3/www/weather.html new file mode 100644 index 0000000..6dc25f7 --- /dev/null +++ b/C15S/Wallpaper3/www/weather.html @@ -0,0 +1,20 @@ + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/JuRw.js b/JuRw.js new file mode 100644 index 0000000..fffae1e --- /dev/null +++ b/JuRw.js @@ -0,0 +1,621 @@ +// JuRt for network + +const HTTP = require('http'); +const HTTPS = require('https'); +const URL = require('url'); +// const readline = require('readline'); +const fs = require('fs'); + +const modpt = __dirname; + +function GFILE(url){ + var Purl = url.split("?",1)[0]; + var Purl2 = url.split("#",1)[0]; + if(Purl2.length!=0 && (Purl2.length < Purl.length)) Purl = Purl2; + return Purl.substring(Purl.lastIndexOf("/")+1); +} + +function WGET(url, calb){ + + var callback = calb; + + if(!url){ + console.log('Parse Error.'); + return; + } + + var up = URL.parse(url); + this.ops = { + host: up.hostname, + port: up.port, + path: up.path || '/', + method: 'GET' + }; + + var body = ''; + var error = false; + var err; + var fin = false; + + var clbk = function(res){ + res.on('data', function(dat){ + body += dat; + }); + res.on('end', function(dat){ + fin = true; + if(callback) callback(err, body); + }); + } + + switch(up.protocol){ + default: + console.log('Unknown protocol, trying HTTP...'); + case 'http:': + this.ops.port = this.ops.port || '80'; + var req = HTTP.request(this.ops, clbk); + break; + case 'https:': + this.ops.port = this.ops.port || '443'; + var req = HTTPS.request(this.ops, clbk); + break; + } + req.on('error', function(er){ + console.log('Error:', er); + error = true; + err = er; + if(this.callback) this.callback(err); + }); + req.end(); + + this.getData = function(){ + if(error) return ['error', err]; + if(!fin) return ['unfinished']; + return ['ok', body]; + } + + this.onDone = function(cb){ + callback = cb; + } +} + +function XML(content){ + + var c = content.toString(); + this.tago = []; + + // init + var i=0; + this.iSpace = function(ch){ + if( ch==' ' || ch=='\n' || ch=='\r' || ch=='\t') return true; + return false; + } + this.iNum = function(ch){ + var ich = ch.charCodeAt(); + return ( (ich>=48 && ich<=57) || ch=='.' || ch=='-' ); + } + this.sKntil = function(ch, dat){ + var d = dat || c; + while(d.charAt(i) != ch) ++i; + } + this.sKntilRev = function(ch, dat){ + var d = dat || c; + while(true){ + if(d.charAt(i) == ch){ + if(d.charAt(i-1) != '\\') break; + } + ++i; + } + + } + this.sKpace = function(dat){ + var d = dat || c; + while(this.iSpace(d.charAt(i))) ++i; + } + this.iEnd = function(ch){ + if( ch==' ' || ch=='>' || ch=='/' || ch=='\t' || ch=='=') return true; + return false; + } + this.sKnd = function(dat){ + var d = dat || c; + while(!this.iEnd(d.charAt(i))) ++i; + } + + this.mkObj = function(part, putInner){ + var stend = this.tago[part]; + var cont = c.substring(stend.start, stend.end); + // var obj = {}; + var obj = new XML(cont); + + // parse + i = 0; + var attrs = cont.substring(0,cont.indexOf('>')+1); + attrs = attrs.substring(attrs.indexOf('<'), attrs.length); + var n = attrs.length; + + this.sKpace(attrs); + + // var start = i; + this.sKnd(attrs); + i++; + // obj.tagName = attrs.substring(start+1, i-1).toUpperCase(); + obj.tagName = stend.name; // .toUpperCase(); + + attrloop: + while(i < n){ + this.sKpace(attrs); + + var start = i; + this.sKnd(attrs); + switch(attrs.charAt(i)){ + case '/': + ++i; + case '>': + // end + ++i; + break attrloop; + } + var attrNs = attrs.substring(start, i); + if(attrs.charAt(i)=='='){ + // has value + start = ++i; + if(attrs.charAt(i) == '"'){ + ++i; + this.sKntilRev('"', attrs); + ++i; + obj[attrNs] = attrs.substring(start+1, i-1); + } + }else{ + obj[attrNs] = true; + } + } + if(stend.inner && putInner){ + // has inner + // this.sKntilRev('>', cont); + // ++i; + this.sKpace(cont); + start = i; + var end = cont.lastIndexOf('<'); + obj.innerHTML = cont.substring(start, end); + } + + return obj; + } + + + // tago[n] = {tagname, start, end, hasinnerHTML} + + this.load = function(d){ + d = d || 0; + this.sKpace(); + + var start = c.indexOf('<',i); + mainloop: + while(start >= 0){ + i = start = c.indexOf('<',i) // tag start + if(start<0) break; + switch(c.charAt(start+1)){ + default: + // get tagname + // var start = i+1; + var sta = i+1; + this.sKnd(); + var tagName = c.substring(sta, i); + break; + case '?': + case '!': + this.sKntil('>'); + continue mainloop; + case '/': + // outHTML end sign + //i--; + // fix previous tag + // wanna find it by tag name + i+=2; + var tgs = i; + this.sKnd(); + var tgName = c.substring(tgs, i); + var n = this.tago.length; + for(var j = n-1; j >= 0; --j){ + var tag = this.tago[j]; + if(tag.name == tgName && tag.inner == undefined){ + tag.end = i+1; + tag.inner = true; + break; + } + } + this.sKntil('>'); + i++; + continue mainloop; + // break mainloop; + } + this.sKntil('>'); // tag end + var hasInner = undefined; + // strict mode + if(c.charAt(i-1) == '/'){ + hasInner = false; + } + // make a object first, change it later + this.sKntil('>'); + i++; + // this.tago.push([tagName, start, i, hasInner, ]); + this.tago.push({ + name: tagName, + start: start, + end: i, + inner: hasInner + }); + } + } + + this.load(); + + this.getByTagName = function(name, putInner){ + if(putInner == undefined) putInner = true; + name = name.toString(); + var ret = []; + var n = this.tago.length; + for(var x=0;x=48 && ich<=57) || ch=='.' || ch=='-' ); + } + this.sKpace = function(){ + while(this.iSpace(d.charAt(i))) ++i; + } + this.getCmd = function(){ + this.sKpace(); + return d.charAt(i++); + } + this.next = function(save, rel){ + this.sKpace(); + var ch = d.charAt(i); + var sti = i; + var num = 0; + var neg = false; + var flt = -1; + while( this.iNum(ch) ){ + var ich = ch.charCodeAt(); + if(ch == '-'){ + if(sti==i)neg = true; + else break; + } + else if(ch == '.') flt = 0; + else if( flt != -1){ + // float + num += (ich-48) * Math.pow(0.1, ++flt); + }else{ + num *= 10; + num += (ich-48); + } + ch = d.charAt(++i); + } + + num = neg?-num:num; + + if(save == 'x') save = 1; + if(save == 'y') save = 2; + if(save){ + save--; + if(rel) num += tmPoint[save]; + // tmPoint[save] = num; + var bkp = tmPoint.slice(); + bkp[save] = num; + tmPoint = bkp; + } + return num; + } + this.nextps = function(n, rel){ + var points = [tmPoint]; + var x = tmPoint[0]; + var y = tmPoint[1]; + if(rel){ + for(var i=0;i= 0) var dat = this.nextps(this.Donfig[ch][0], !this.Donfig[ch][1]) + else var dat = [tmPoint, (this.Donfig[ch][3]=='x')?[this.next(this.Donfig[ch][3], !this.Donfig[ch][1]), tmPoint[1]]:[tmPoint[0], this.next(this.Donfig[ch][3], !this.Donfig[ch][1])]]; + + var cmd = ch.toUpperCase(); + /* Fixs */ + switch(cmd){ + case 'Z': + dat.push(tmPoint = /*this.path[0][1][0]*/mvStart); + // ch = 'L'; + break; + case 'S': + case 'T': + var ldat = this.path[this.path.length-1]; + var indep = false; + if(ldat){ + var ld = ldat[1]; + switch(ldat[0]){ + default: + // indep + indep = true; + break; + case 'T': + case 'Q': + if(cmd != 'T'){indep = true;break;} + //dat = [[2*ld[1][0]-ld[0][0], 2*ld[1][1]-ld[0][1]]].concat(dat); + // dat = [[2*ld[2][0]-ld[1][0], 2*ld[2][1]-ld[1][1]]].concat(dat); + dat = [dat[0]].concat([[2*ld[2][0]-ld[1][0], 2*ld[2][1]-ld[1][1]]]).concat(dat.slice(1)); + break; + case 'S': + case 'C': + if(cmd != 'S'){indep = true;break;} + // dat = [[2*ld[2][0]-ld[1][0], 2*ld[2][1]-ld[1][1]]].concat(dat); + dat = [dat[0]].concat([[2*ld[3][0]-ld[2][0], 2*ld[3][1]-ld[2][1]]]).concat(dat.slice(1)); + break; + } + }else{ + // indep + indep = true; + } + if(indep){ + // dat.concat(dat); + dat = [ldat[1][ldat[1].length-1]].concat(dat); + } + break; + case 'M': + mvStart = dat[1].slice(); + break; + } + // console.log(JSON.stringify(dat)) + + if(this.Donfig[ch][2]) this.path.push( [cmd, dat] ); + } + + // console.log(JSON.stringify(this.path).replace(new RegExp(']]','g'),']]\n')) + + + this.calcPoint = function(parg, per){ + var CMD = this.path[parg]; + var ps = CMD[1]; + var tmp = 1 - per; + switch(CMD[0]){ + case 'S': + case 'C': + return { x: ps[0][0] * Math.pow(tmp,3) + 3 * ps[1][0] * per * tmp * tmp + 3 * ps[2][0] * per * per * tmp + ps[3][0] * Math.pow(per,3), y: ps[0][1] * Math.pow(tmp,3) + 3 * ps[1][1] * per * tmp * tmp + 3 * ps[2][1] * per * per * tmp + ps[3][1] * Math.pow(per,3) } + case 'T': + case 'Q': + return { x: ps[0][0] * tmp * tmp + 2 * ps[1][0] * tmp * per + ps[2][0] * per * per, y: ps[0][1] * tmp * tmp + 2 * ps[1][1] * tmp * per + ps[2][1] * per * per } + case 'V': + case 'H': + case 'Z': + case 'L': + return { x: per*ps[1][0] + tmp*ps[0][0], y: per*ps[1][1] + tmp*ps[0][1] } + } + } + + // Calculate Length + // vars: DL + var samp = 0.01; + + function calcLength(a,b){ + var dx = Math.abs(b.x-a.x); + var dy = Math.abs(b.y-a.y); + return Math.sqrt(dx*dx + dy*dy); + } + + for (var i=0;i +hwconv.bat: Bootstrap for hwconv.js +hwconv.vbs: Bootstrap for hwconv.bat +main.bat: Used to run Wallpaper. +C15S: alias C15Support, a custom wallpaper engine. +``` + +The wallpaper engine is built under Qt 5.9.0 with MSVC2019 32-bit +It's originally from another open source project, which I cannot remember the link. +Deleted UI and custom web page path support. Web pages are at C15S/www + +All executable binary files are all compatible with Windows7 32-bit and newer versions. + + diff --git a/document.xml b/document.xml new file mode 100644 index 0000000..23ad7f0 --- /dev/null +++ b/document.xml @@ -0,0 +1,2 @@ + +语文必刷题颁奖词材料第一面连云港 大阅读 文言文 语病专项练习1-12数学绿白双煞 专题11英语句子 完成模拟卷剩余题目历史黄卷P47-48第16题和18题背选修明治维新生物白本 P128 训练三 写到第17地理卷子 \ No newline at end of file diff --git a/hw.docx b/hw.docx new file mode 100644 index 0000000..efb2677 Binary files /dev/null and b/hw.docx differ diff --git a/hwconv.bat b/hwconv.bat new file mode 100644 index 0000000..d3d8b33 --- /dev/null +++ b/hwconv.bat @@ -0,0 +1,4 @@ +@echo off +copy C:\Users\baban\Desktop\hw.docx .\hw.docx +7z e -y -o. .\hw.docx word/document.xml +node hwconv.js .\document.xml C:\Users\baban\Desktop\hw.out.txt diff --git a/hwconv.js b/hwconv.js new file mode 100644 index 0000000..f651ed5 --- /dev/null +++ b/hwconv.js @@ -0,0 +1,100 @@ +// Nodejs v5.2.0 +// For Cygwin: Win32 Environment +if(process.argv.length != 4){ + console.log('Incorrect arguments.\n\nUsage: |node hwconv.js '); + process.exit(1); +} +require('./JuRw.js') +var fs = require('fs') + +// Usage: pipe something |node hwconv.js [outputTxt] +/** Data Structure (part) Of document.xml + + + + <== Define a row + <== Define a colum + <== Define a paragraph (aka. line, add newline character) + <== Define texts + Text + + + + + +*/ + +var xhwGrid = new XML(fs.readFileSync(process.argv[2],'utf-8').toString('binary')); + +var xlines = xhwGrid.getByTagName('w:tr'); + +var txt=''; + +var subjmod=''; +var compactWeb = {}; +var subjs=['c','m','e','z','b','p']; +var subjpos=0; + +// get line +for(var i=0,n=xlines.length;i