Compare commits
56 Commits
Author | SHA1 | Date |
---|---|---|
|
9a4a97e1f4 | 1 year ago |
|
e348f9748d | 1 year ago |
|
eaa4b6396c | 1 year ago |
|
d180d3b930 | 1 year ago |
|
911df57a45 | 1 year ago |
|
5c049776bd | 1 year ago |
|
0ac7518851 | 1 year ago |
|
6401b7f8ee | 1 year ago |
|
1fcfc82dcd | 1 year ago |
|
bd2b81d8f9 | 1 year ago |
|
332627eddd | 1 year ago |
|
1be23e43c9 | 1 year ago |
|
48fca54eb8 | 1 year ago |
|
d0ddb7c021 | 1 year ago |
|
04f1586ddb | 1 year ago |
|
9cb2c9d7d3 | 1 year ago |
|
4f1a099b64 | 1 year ago |
|
64c0648765 | 1 year ago |
|
fb29bab09a | 1 year ago |
|
19d6ce7909 | 1 year ago |
|
77440fabe7 | 1 year ago |
|
11468396c7 | 1 year ago |
|
38949313db | 1 year ago |
|
85fa06e0de | 1 year ago |
|
4e4b0b4922 | 1 year ago |
|
345052f924 | 1 year ago |
|
a3c3363cb7 | 1 year ago |
|
93f49ab8a3 | 1 year ago |
|
2a066c6015 | 1 year ago |
|
9d444c063e | 1 year ago |
|
e694deaa60 | 1 year ago |
|
43ad7d1396 | 1 year ago |
|
1aba798600 | 1 year ago |
|
5bfd73b74f | 1 year ago |
|
561deccb33 | 1 year ago |
|
1872f957fe | 1 year ago |
|
0a08a5d44c | 1 year ago |
|
6367ed7785 | 1 year ago |
|
2514422a14 | 1 year ago |
|
ee94467b84 | 1 year ago |
|
c01c0d9db4 | 1 year ago |
|
0ad7b6fce7 | 1 year ago |
|
300596b34b | 1 year ago |
|
c97fcf275b | 1 year ago |
|
f647e8e783 | 1 year ago |
|
029359bf97 | 1 year ago |
|
c4479e176a | 1 year ago |
|
2229dfcc1b | 1 year ago |
|
a925070e1d | 1 year ago |
|
dd91cac9e7 | 1 year ago |
|
440a65542a | 1 year ago |
|
afd6fdb774 | 1 year ago |
|
777b95771a | 1 year ago |
|
5f9c2df2af | 1 year ago |
|
ff57ea8ee2 | 1 year ago |
|
7b67a40e39 | 1 year ago |
@ -1 +0,0 @@
|
||||
123
|
After Width: | Height: | Size: 211 KiB |
After Width: | Height: | Size: 879 KiB |
After Width: | Height: | Size: 102 KiB |
@ -0,0 +1,120 @@
|
||||
from turtle import RawTurtle
|
||||
import tkinter as tk
|
||||
import threading
|
||||
class app:
|
||||
def __init__(self) -> None:
|
||||
self.mainapp=tk.Tk()
|
||||
self.mainapp.geometry("600x800+500+100")
|
||||
self.tk()
|
||||
self.mainapp.mainloop()
|
||||
def drawcpu(self,cpu):
|
||||
for i in cpu:
|
||||
self.runpen[i].fd(50)
|
||||
def drawio(self,io):
|
||||
for i in io :
|
||||
self.runpen[abs(i)].fd(50)
|
||||
def FCFS(self):
|
||||
c=self.l
|
||||
iol=[]
|
||||
cpu=[]
|
||||
io=[]
|
||||
cpul=c
|
||||
while (cpul!=[]) or (iol!=[]):
|
||||
if(iol!=[] and iol[0]!=[] and iol[0][0]>0):
|
||||
|
||||
cpul.append(iol[0])
|
||||
iol.pop(0)
|
||||
continue
|
||||
if(cpul!=[] and cpul[0]!=[] and cpul[0][0]<0):
|
||||
iol.append(cpul[0])
|
||||
cpul.pop(0)
|
||||
continue
|
||||
|
||||
if cpul==[]:
|
||||
cpu.append(0)
|
||||
elif cpul[0]==[]:cpul.pop(0)
|
||||
|
||||
elif(cpul[0][0]>0):
|
||||
cpu.append(cpul[0][0])
|
||||
cpul[0].pop(0)
|
||||
|
||||
if(iol==[]):
|
||||
io.append(0)
|
||||
elif(iol[0]==[]):iol.pop(0)
|
||||
elif(iol[0][0]<0):
|
||||
io.append(iol[0][0])
|
||||
iol[0].pop(0)
|
||||
|
||||
print("io:",io)
|
||||
print("cpu:",cpu)
|
||||
print("iol:",iol)
|
||||
print("cpul:",cpul)
|
||||
threading.Thread(target=lambda:self.drawcpu(cpu)).start()
|
||||
threading.Thread(target=lambda:self.drawio(io)).start()
|
||||
|
||||
def creat(self,p):
|
||||
self.num+=1
|
||||
p=[int(x) for x in p]
|
||||
self.timesum+=sum(p)
|
||||
self.l.append([self.num]*p[0]+[-self.num]*p[1]+[self.num]*p[2])
|
||||
self.createntry.delete(0,"end")
|
||||
self.b1=tk.Button()
|
||||
self.creatpen.color("black")
|
||||
self.creatpen.pensize(1)
|
||||
self.creatpen.pu()
|
||||
self.creatpen.goto(self.creatposition)
|
||||
self.creatpen.pd()
|
||||
self.creatpen.write("进程{}".format(self.num),font=(None,15))
|
||||
self.creatpen.fd(70)
|
||||
self.creatpen.left(90)
|
||||
self.creatpen.fd(9)
|
||||
self.creatpen.right(90)
|
||||
self.creatpen.color("red")
|
||||
self.creatpen.pensize(20)
|
||||
for i in p:
|
||||
self.creatpen.fd(i*50)
|
||||
self.creatpen.color("red" if self.creatpen.color()!=('red', 'red') else "green")
|
||||
self.runpen.append(RawTurtle(self.draw))
|
||||
self.runpen[self.num].hideturtle()
|
||||
self.runpen[self.num].speed(0)
|
||||
self.runpen[self.num].color("blue")
|
||||
self.runpen[self.num].pensize(20)
|
||||
self.runpen[self.num].pu()
|
||||
self.runpen[self.num].goto(self.creatposition[0]+70,self.creatposition[1]+9)
|
||||
self.runpen[self.num].pd()
|
||||
self.runpen[self.num].speed(1)
|
||||
self.creatposition[1]-=30
|
||||
def creatset(self):
|
||||
self.runpen=[]
|
||||
self.creatpen.clear()
|
||||
self.l=[]
|
||||
self.timesum=0
|
||||
self.num=0
|
||||
self.creatposition=[-270,200]
|
||||
self.runpen.append(RawTurtle(self.draw))
|
||||
self.runpen[0].hideturtle()
|
||||
self.runpen[0].speed(0)
|
||||
self.runpen[0].color("blue")
|
||||
self.runpen[0].pensize(20)
|
||||
self.runpen[0].pu()
|
||||
self.runpen[0].goto(-270,300)
|
||||
self.runpen[0].speed(1)
|
||||
|
||||
def tk(self):
|
||||
self.draw=tk.Canvas(self.mainapp,width=600,height=600)
|
||||
self.draw.pack()
|
||||
self.ui=tk.Frame(self.mainapp,width=600,height=200)
|
||||
self.ui.pack()
|
||||
self.createntry=tk.Entry(self.ui,width=60)
|
||||
self.createntry.place(x=10,y=10)
|
||||
self.creatpen=RawTurtle(self.draw)
|
||||
self.creatpen.pen(speed=0,shown=False)
|
||||
self.creatset()
|
||||
self.creatbutton=tk.Button(self.ui,width=20,text="creat",command=lambda:self.creat(self.createntry.get().split(",")))
|
||||
self.creatbutton.place(x=440,y=8)
|
||||
self.clearbuttom=tk.Button(self.ui,width=20,text="clear",command=self.creatset)
|
||||
self.clearbuttom.place(x=440,y=40)
|
||||
self.FCFSbuttom=tk.Button(self.ui,width=20,text="FCFS",command=self.FCFS)
|
||||
self.FCFSbuttom.place(x=440,y=80)
|
||||
pass
|
||||
app()
|
@ -0,0 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Artemis GPT</title>
|
||||
<!-- Bootstrap CSS -->
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="hidep" style="display: none; "></textarea>
|
||||
<div class="container mt-5">
|
||||
<div class="chat-box border rounded">
|
||||
<div class="d-flex justify-content-between align-items-center p-3 bg-light">
|
||||
<span>Artemis</span>
|
||||
<button class="btn btn-secondary btn-sm" id="newChatButton">新聊天</button>
|
||||
</div>
|
||||
<div class="chat-content p-3" style="height: 400px; overflow-y: auto;">
|
||||
<!-- Messages will appear here -->
|
||||
</div>
|
||||
<div class="p-3">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" id="messageInput" placeholder="Enter your message...">
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-primary" id="sendButton">Send</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- jQuery and Bootstrap JS -->
|
||||
<script src="static/jquery/jquery-1.12.4.min.js"></script>
|
||||
<!--包括所有已编译的插件-->
|
||||
<script src="static/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script>
|
||||
$$(document).ready(function(){
|
||||
$$("#sendButton").click(function(){
|
||||
var message = $$("#messageInput").val().trim();
|
||||
|
||||
if (message) {
|
||||
|
||||
$$("#messageInput").val('');
|
||||
$$("#hidep").append("{'role': 'user', 'content':'''"+message+"'''},")
|
||||
allMessages=$$("#hidep").text()
|
||||
$$(".chat-content").append(`<div class="text-right mb-2"><span class="badge badge-primary" ><p align="left" style="white-space: pre-wrap; width:220px; word-wrap: break-word; word-break:break-all;">$${message}<p></span></div>`);
|
||||
$$("#sendButton").prop("disabled", true);
|
||||
|
||||
// Show loading spinner
|
||||
$$(".chat-content").append('<div id="loadingSpinner" class="text-left mb-2"><span class="spinner-border spinner-border-sm"></span> Loading...</div>');
|
||||
$$.post("/chat", { messages: allMessages }, function(response){
|
||||
if(response) {
|
||||
$$("#hidep").append("{'role': 'assistant', 'content':'''"+response+"'''},");
|
||||
$$(".chat-content").append(`<div class="text-left mb-2"><span class="badge badge-secondary"><p align="left" style="white-space: pre-wrap; width:220px; word-wrap: break-word; word-break:break-all;">$${response}</p></span></div>`);
|
||||
|
||||
$$("#sendButton").prop("disabled", false);
|
||||
$$('#loadingSpinner').remove();
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$$("#newChatButton").click(function(){
|
||||
$$(".hidep").empty();
|
||||
$$(".chat-content").empty();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,47 @@
|
||||
import web
|
||||
import openai
|
||||
def chatgpt(mess):
|
||||
openai.api_key ="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"
|
||||
response = openai.ChatCompletion.create(
|
||||
model="gpt-4",
|
||||
messages=mess
|
||||
)
|
||||
re=response['choices'][0]['message']['content']
|
||||
return re
|
||||
|
||||
urls = (
|
||||
'/', 'LoginPage',
|
||||
'/login', 'LoginAction',
|
||||
"/chat",'chat',
|
||||
)
|
||||
render=web.template.render('./')
|
||||
app = web.application(urls, globals())
|
||||
|
||||
class LoginPage:
|
||||
def GET(self):
|
||||
return render.index("")
|
||||
|
||||
class LoginAction:
|
||||
def POST(self):
|
||||
# 获取表单提交的数据
|
||||
i = web.input()
|
||||
username = i.get('PassID', '')
|
||||
password = i.get('Password', '')
|
||||
|
||||
# 打印提交的数据
|
||||
print(f"Username: {username}")
|
||||
print(f"Password: {password}")
|
||||
if (username=="myy" and password=="myy"):
|
||||
return render.chat()
|
||||
else :
|
||||
return render.index("密码错误!")
|
||||
class chat:
|
||||
def POST(self):
|
||||
i=web.input().messages
|
||||
i=list(eval(i))
|
||||
|
||||
x=chatgpt(i)
|
||||
print(x)
|
||||
return x
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
@ -0,0 +1,48 @@
|
||||
$def with(e)
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bootstrap 实例</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
|
||||
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row clearfix">
|
||||
<div class="col-md-12 column">
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
Chat-Artemis<br><small> base on <br><s> 文心一言4.0 </s><br><s> 讯飞星火大模型2.0</s><br>
|
||||
华为盘古大模型!√</small>
|
||||
</h1>
|
||||
</div>
|
||||
<form class="form-horizontal" role="form" method="post" action="/login">
|
||||
<div class="form-group">
|
||||
<label for="PassID" class="col-sm-2 control-label">ID</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="PassID" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password" class="col-sm-2 control-label">Password</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="password" name="Password" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" value="inputPassword3" class="btn btn-default">Sign in</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<p>$e</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,587 @@
|
||||
/*!
|
||||
* Bootstrap v3.3.7 (http://getbootstrap.com)
|
||||
* Copyright 2011-2016 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
*/
|
||||
.btn-default,
|
||||
.btn-primary,
|
||||
.btn-success,
|
||||
.btn-info,
|
||||
.btn-warning,
|
||||
.btn-danger {
|
||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
|
||||
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.btn-default:active,
|
||||
.btn-primary:active,
|
||||
.btn-success:active,
|
||||
.btn-info:active,
|
||||
.btn-warning:active,
|
||||
.btn-danger:active,
|
||||
.btn-default.active,
|
||||
.btn-primary.active,
|
||||
.btn-success.active,
|
||||
.btn-info.active,
|
||||
.btn-warning.active,
|
||||
.btn-danger.active {
|
||||
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
||||
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
||||
}
|
||||
.btn-default.disabled,
|
||||
.btn-primary.disabled,
|
||||
.btn-success.disabled,
|
||||
.btn-info.disabled,
|
||||
.btn-warning.disabled,
|
||||
.btn-danger.disabled,
|
||||
.btn-default[disabled],
|
||||
.btn-primary[disabled],
|
||||
.btn-success[disabled],
|
||||
.btn-info[disabled],
|
||||
.btn-warning[disabled],
|
||||
.btn-danger[disabled],
|
||||
fieldset[disabled] .btn-default,
|
||||
fieldset[disabled] .btn-primary,
|
||||
fieldset[disabled] .btn-success,
|
||||
fieldset[disabled] .btn-info,
|
||||
fieldset[disabled] .btn-warning,
|
||||
fieldset[disabled] .btn-danger {
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.btn-default .badge,
|
||||
.btn-primary .badge,
|
||||
.btn-success .badge,
|
||||
.btn-info .badge,
|
||||
.btn-warning .badge,
|
||||
.btn-danger .badge {
|
||||
text-shadow: none;
|
||||
}
|
||||
.btn:active,
|
||||
.btn.active {
|
||||
background-image: none;
|
||||
}
|
||||
.btn-default {
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%);
|
||||
background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0));
|
||||
background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #dbdbdb;
|
||||
border-color: #ccc;
|
||||
}
|
||||
.btn-default:hover,
|
||||
.btn-default:focus {
|
||||
background-color: #e0e0e0;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-default:active,
|
||||
.btn-default.active {
|
||||
background-color: #e0e0e0;
|
||||
border-color: #dbdbdb;
|
||||
}
|
||||
.btn-default.disabled,
|
||||
.btn-default[disabled],
|
||||
fieldset[disabled] .btn-default,
|
||||
.btn-default.disabled:hover,
|
||||
.btn-default[disabled]:hover,
|
||||
fieldset[disabled] .btn-default:hover,
|
||||
.btn-default.disabled:focus,
|
||||
.btn-default[disabled]:focus,
|
||||
fieldset[disabled] .btn-default:focus,
|
||||
.btn-default.disabled.focus,
|
||||
.btn-default[disabled].focus,
|
||||
fieldset[disabled] .btn-default.focus,
|
||||
.btn-default.disabled:active,
|
||||
.btn-default[disabled]:active,
|
||||
fieldset[disabled] .btn-default:active,
|
||||
.btn-default.disabled.active,
|
||||
.btn-default[disabled].active,
|
||||
fieldset[disabled] .btn-default.active {
|
||||
background-color: #e0e0e0;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-primary {
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #265a88 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#265a88));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #245580;
|
||||
}
|
||||
.btn-primary:hover,
|
||||
.btn-primary:focus {
|
||||
background-color: #265a88;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-primary:active,
|
||||
.btn-primary.active {
|
||||
background-color: #265a88;
|
||||
border-color: #245580;
|
||||
}
|
||||
.btn-primary.disabled,
|
||||
.btn-primary[disabled],
|
||||
fieldset[disabled] .btn-primary,
|
||||
.btn-primary.disabled:hover,
|
||||
.btn-primary[disabled]:hover,
|
||||
fieldset[disabled] .btn-primary:hover,
|
||||
.btn-primary.disabled:focus,
|
||||
.btn-primary[disabled]:focus,
|
||||
fieldset[disabled] .btn-primary:focus,
|
||||
.btn-primary.disabled.focus,
|
||||
.btn-primary[disabled].focus,
|
||||
fieldset[disabled] .btn-primary.focus,
|
||||
.btn-primary.disabled:active,
|
||||
.btn-primary[disabled]:active,
|
||||
fieldset[disabled] .btn-primary:active,
|
||||
.btn-primary.disabled.active,
|
||||
.btn-primary[disabled].active,
|
||||
fieldset[disabled] .btn-primary.active {
|
||||
background-color: #265a88;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-success {
|
||||
background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
||||
background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641));
|
||||
background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #3e8f3e;
|
||||
}
|
||||
.btn-success:hover,
|
||||
.btn-success:focus {
|
||||
background-color: #419641;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-success:active,
|
||||
.btn-success.active {
|
||||
background-color: #419641;
|
||||
border-color: #3e8f3e;
|
||||
}
|
||||
.btn-success.disabled,
|
||||
.btn-success[disabled],
|
||||
fieldset[disabled] .btn-success,
|
||||
.btn-success.disabled:hover,
|
||||
.btn-success[disabled]:hover,
|
||||
fieldset[disabled] .btn-success:hover,
|
||||
.btn-success.disabled:focus,
|
||||
.btn-success[disabled]:focus,
|
||||
fieldset[disabled] .btn-success:focus,
|
||||
.btn-success.disabled.focus,
|
||||
.btn-success[disabled].focus,
|
||||
fieldset[disabled] .btn-success.focus,
|
||||
.btn-success.disabled:active,
|
||||
.btn-success[disabled]:active,
|
||||
fieldset[disabled] .btn-success:active,
|
||||
.btn-success.disabled.active,
|
||||
.btn-success[disabled].active,
|
||||
fieldset[disabled] .btn-success.active {
|
||||
background-color: #419641;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-info {
|
||||
background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
||||
background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2));
|
||||
background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #28a4c9;
|
||||
}
|
||||
.btn-info:hover,
|
||||
.btn-info:focus {
|
||||
background-color: #2aabd2;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-info:active,
|
||||
.btn-info.active {
|
||||
background-color: #2aabd2;
|
||||
border-color: #28a4c9;
|
||||
}
|
||||
.btn-info.disabled,
|
||||
.btn-info[disabled],
|
||||
fieldset[disabled] .btn-info,
|
||||
.btn-info.disabled:hover,
|
||||
.btn-info[disabled]:hover,
|
||||
fieldset[disabled] .btn-info:hover,
|
||||
.btn-info.disabled:focus,
|
||||
.btn-info[disabled]:focus,
|
||||
fieldset[disabled] .btn-info:focus,
|
||||
.btn-info.disabled.focus,
|
||||
.btn-info[disabled].focus,
|
||||
fieldset[disabled] .btn-info.focus,
|
||||
.btn-info.disabled:active,
|
||||
.btn-info[disabled]:active,
|
||||
fieldset[disabled] .btn-info:active,
|
||||
.btn-info.disabled.active,
|
||||
.btn-info[disabled].active,
|
||||
fieldset[disabled] .btn-info.active {
|
||||
background-color: #2aabd2;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-warning {
|
||||
background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
||||
background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316));
|
||||
background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #e38d13;
|
||||
}
|
||||
.btn-warning:hover,
|
||||
.btn-warning:focus {
|
||||
background-color: #eb9316;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-warning:active,
|
||||
.btn-warning.active {
|
||||
background-color: #eb9316;
|
||||
border-color: #e38d13;
|
||||
}
|
||||
.btn-warning.disabled,
|
||||
.btn-warning[disabled],
|
||||
fieldset[disabled] .btn-warning,
|
||||
.btn-warning.disabled:hover,
|
||||
.btn-warning[disabled]:hover,
|
||||
fieldset[disabled] .btn-warning:hover,
|
||||
.btn-warning.disabled:focus,
|
||||
.btn-warning[disabled]:focus,
|
||||
fieldset[disabled] .btn-warning:focus,
|
||||
.btn-warning.disabled.focus,
|
||||
.btn-warning[disabled].focus,
|
||||
fieldset[disabled] .btn-warning.focus,
|
||||
.btn-warning.disabled:active,
|
||||
.btn-warning[disabled]:active,
|
||||
fieldset[disabled] .btn-warning:active,
|
||||
.btn-warning.disabled.active,
|
||||
.btn-warning[disabled].active,
|
||||
fieldset[disabled] .btn-warning.active {
|
||||
background-color: #eb9316;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-danger {
|
||||
background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
||||
background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a));
|
||||
background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #b92c28;
|
||||
}
|
||||
.btn-danger:hover,
|
||||
.btn-danger:focus {
|
||||
background-color: #c12e2a;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-danger:active,
|
||||
.btn-danger.active {
|
||||
background-color: #c12e2a;
|
||||
border-color: #b92c28;
|
||||
}
|
||||
.btn-danger.disabled,
|
||||
.btn-danger[disabled],
|
||||
fieldset[disabled] .btn-danger,
|
||||
.btn-danger.disabled:hover,
|
||||
.btn-danger[disabled]:hover,
|
||||
fieldset[disabled] .btn-danger:hover,
|
||||
.btn-danger.disabled:focus,
|
||||
.btn-danger[disabled]:focus,
|
||||
fieldset[disabled] .btn-danger:focus,
|
||||
.btn-danger.disabled.focus,
|
||||
.btn-danger[disabled].focus,
|
||||
fieldset[disabled] .btn-danger.focus,
|
||||
.btn-danger.disabled:active,
|
||||
.btn-danger[disabled]:active,
|
||||
fieldset[disabled] .btn-danger:active,
|
||||
.btn-danger.disabled.active,
|
||||
.btn-danger[disabled].active,
|
||||
fieldset[disabled] .btn-danger.active {
|
||||
background-color: #c12e2a;
|
||||
background-image: none;
|
||||
}
|
||||
.thumbnail,
|
||||
.img-thumbnail {
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.dropdown-menu > li > a:hover,
|
||||
.dropdown-menu > li > a:focus {
|
||||
background-color: #e8e8e8;
|
||||
background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||
background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
|
||||
background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.dropdown-menu > .active > a,
|
||||
.dropdown-menu > .active > a:hover,
|
||||
.dropdown-menu > .active > a:focus {
|
||||
background-color: #2e6da4;
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.navbar-default {
|
||||
background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%);
|
||||
background-image: -o-linear-gradient(top, #fff 0%, #f8f8f8 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8));
|
||||
background-image: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.navbar-default .navbar-nav > .open > a,
|
||||
.navbar-default .navbar-nav > .active > a {
|
||||
background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);
|
||||
background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2));
|
||||
background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
-webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);
|
||||
box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.navbar-brand,
|
||||
.navbar-nav > li > a {
|
||||
text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
|
||||
}
|
||||
.navbar-inverse {
|
||||
background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%);
|
||||
background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222));
|
||||
background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.navbar-inverse .navbar-nav > .open > a,
|
||||
.navbar-inverse .navbar-nav > .active > a {
|
||||
background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%);
|
||||
background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f));
|
||||
background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
-webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);
|
||||
box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);
|
||||
}
|
||||
.navbar-inverse .navbar-brand,
|
||||
.navbar-inverse .navbar-nav > li > a {
|
||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
|
||||
}
|
||||
.navbar-static-top,
|
||||
.navbar-fixed-top,
|
||||
.navbar-fixed-bottom {
|
||||
border-radius: 0;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.navbar .navbar-nav .open .dropdown-menu > .active > a,
|
||||
.navbar .navbar-nav .open .dropdown-menu > .active > a:hover,
|
||||
.navbar .navbar-nav .open .dropdown-menu > .active > a:focus {
|
||||
color: #fff;
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
}
|
||||
.alert {
|
||||
text-shadow: 0 1px 0 rgba(255, 255, 255, .2);
|
||||
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
|
||||
}
|
||||
.alert-success {
|
||||
background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
|
||||
background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc));
|
||||
background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #b2dba1;
|
||||
}
|
||||
.alert-info {
|
||||
background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
|
||||
background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0));
|
||||
background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #9acfea;
|
||||
}
|
||||
.alert-warning {
|
||||
background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
|
||||
background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0));
|
||||
background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #f5e79e;
|
||||
}
|
||||
.alert-danger {
|
||||
background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
|
||||
background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3));
|
||||
background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #dca7a7;
|
||||
}
|
||||
.progress {
|
||||
background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
|
||||
background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5));
|
||||
background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar {
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#286090));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-success {
|
||||
background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%);
|
||||
background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44));
|
||||
background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-info {
|
||||
background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
|
||||
background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5));
|
||||
background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-warning {
|
||||
background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
|
||||
background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f));
|
||||
background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-danger {
|
||||
background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%);
|
||||
background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c));
|
||||
background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-striped {
|
||||
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||
}
|
||||
.list-group {
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.list-group-item.active,
|
||||
.list-group-item.active:hover,
|
||||
.list-group-item.active:focus {
|
||||
text-shadow: 0 -1px 0 #286090;
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2b669a));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #2b669a;
|
||||
}
|
||||
.list-group-item.active .badge,
|
||||
.list-group-item.active:hover .badge,
|
||||
.list-group-item.active:focus .badge {
|
||||
text-shadow: none;
|
||||
}
|
||||
.panel {
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
|
||||
}
|
||||
.panel-default > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||
background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
|
||||
background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-primary > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-success > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
|
||||
background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6));
|
||||
background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-info > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
|
||||
background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3));
|
||||
background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-warning > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
|
||||
background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc));
|
||||
background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-danger > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
|
||||
background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc));
|
||||
background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.well {
|
||||
background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
|
||||
background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5));
|
||||
background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #dcdcdc;
|
||||
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
|
||||
box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
|
||||
}
|
||||
/*# sourceMappingURL=bootstrap-theme.css.map */
|
After Width: | Height: | Size: 106 KiB |
@ -0,0 +1,13 @@
|
||||
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
|
||||
require('../../js/transition.js')
|
||||
require('../../js/alert.js')
|
||||
require('../../js/button.js')
|
||||
require('../../js/carousel.js')
|
||||
require('../../js/collapse.js')
|
||||
require('../../js/dropdown.js')
|
||||
require('../../js/modal.js')
|
||||
require('../../js/tooltip.js')
|
||||
require('../../js/popover.js')
|
||||
require('../../js/scrollspy.js')
|
||||
require('../../js/tab.js')
|
||||
require('../../js/affix.js')
|
After Width: | Height: | Size: 55 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 8.4 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 263 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 55 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 55 KiB |
After Width: | Height: | Size: 8.4 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 9.9 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 9.4 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 1.7 KiB |
@ -0,0 +1,186 @@
|
||||
import tkinter as tk
|
||||
import tkinter.ttk as ttk
|
||||
import random as r
|
||||
class logIn:#登录界面
|
||||
def __init__(self):
|
||||
x=admin()
|
||||
'''self.t=tk.Tk()
|
||||
self.t.geometry("560x860+600+0")
|
||||
self.t.title("登录管理员系统")
|
||||
file=tk.PhotoImage(file=".\\img\\3.png")
|
||||
img=tk.Canvas(self.t,width=560,height=860)
|
||||
img.create_image(280,430,image=file)
|
||||
img.place(x=0,y=0)
|
||||
t2=tk.Entry(self.t,width=40)
|
||||
t2.place(x=130,y=390)
|
||||
t2.select_clear()
|
||||
file2=tk.PhotoImage(file=".\\img\\b11.png")
|
||||
b=tk.Button(self.t,bg="orange",relief="raised",image=file2,command=self.log)
|
||||
b.place(x=230,y=480)
|
||||
self.t.mainloop()'''
|
||||
def log(self):#登录函数
|
||||
self.t.destroy()
|
||||
|
||||
class admin:#管理员主界面
|
||||
def __init__(self):
|
||||
self.t=tk.Tk()
|
||||
self.t.geometry("560x860+600+0")
|
||||
sty=ttk.Style()
|
||||
sty.configure("Treeview",font=(None,15))
|
||||
file=tk.PhotoImage(file=".\\img 2\\4.png")
|
||||
self.file2=tk.PhotoImage(file=".\\img 2\\food.png")
|
||||
self.file3=tk.PhotoImage(file=".\\img 2\\bill.png")
|
||||
self.file4=tk.PhotoImage(file=".\\img 2\\food.png")
|
||||
self.file5=tk.PhotoImage(file=".\\img 2\\psd.png")
|
||||
self.file6=tk.PhotoImage(file=".\\img 2\\cbill.png")
|
||||
self.file7=tk.PhotoImage(file=".\\img 2\\sent.png")
|
||||
self.file8=tk.PhotoImage(file=".\\img 2\\return.png")
|
||||
self.file9=tk.PhotoImage(file=".\\img 2\\ckxx.png")
|
||||
self.file10=tk.PhotoImage(file=".\\img 2\\zf.png")
|
||||
self.file11=tk.PhotoImage(file=".\\img 2\\sf.png")
|
||||
self.file12=tk.PhotoImage(file=".\\img 2\\cf.png")
|
||||
self.file13=tk.PhotoImage(file=".\\img 2\\qrxg.png")
|
||||
img=tk.Canvas(self.t,width=560,height=860)
|
||||
img.create_image(280,430,image=file)
|
||||
img.place(x=0,y=0)
|
||||
self.admin_main()
|
||||
self.t.mainloop()
|
||||
def admin_main(self):
|
||||
self.b1=tk.Button(self.t,relief="raised",image=self.file2,command=self.bill,bg="orange")
|
||||
self.b2=tk.Button(self.t,relief="raised",image=self.file3,command=self.customer,bg="orange")
|
||||
self.b3=tk.Button(self.t,relief="raised",image=self.file5,command=self.psd,bg="orange")
|
||||
|
||||
self.b1.place(x=220,y=180)
|
||||
self.b2.place(x=220,y=250)
|
||||
self.b3.place(x=220,y=320)
|
||||
def re1(self):
|
||||
self.b5.destroy()
|
||||
self.b6.destroy()
|
||||
self.b7.destroy()
|
||||
self.f1.destroy()
|
||||
self.tree.destroy()
|
||||
self.admin_main()
|
||||
def re2(self):
|
||||
self.b8.destroy()
|
||||
self.b9.destroy()
|
||||
self.f2.destroy()
|
||||
self.tree2.destroy()
|
||||
self.admin_main()
|
||||
def re3(self):
|
||||
self.b10.destroy()
|
||||
|
||||
self.b13.destroy()
|
||||
self.f3.destroy()
|
||||
self.tree3.destroy()
|
||||
self.admin_main()
|
||||
def re4(self):
|
||||
self.b14.destroy()
|
||||
self.b15.destroy()
|
||||
self.e1.destroy()
|
||||
self.e2.destroy()
|
||||
self.admin_main()
|
||||
def bill1(self):
|
||||
self.b1.destroy()
|
||||
self.b2.destroy()
|
||||
self.b3.destroy()
|
||||
self.f1=tk.Frame(height=312,width=520,relief='sunken',bd=5)
|
||||
self.tree=ttk.Treeview(self.f1,height=15,show="tree")
|
||||
self.f1.place(x=20,y=50)
|
||||
self.tree.place(x=0,y=0,width=510)
|
||||
self.tree.insert("","end",text="流水号:2213012390")
|
||||
self.tree.insert("","end",text="餐品:100")
|
||||
self.tree.insert("","end",text="点餐列表:")
|
||||
self.tree.insert("","end",iid="piz",text="九寸披萨¥60")
|
||||
self.tree.insert("piz","end",text="水果拼牛肉¥30")
|
||||
self.tree.insert("piz","end",text="加厚饼底¥10")
|
||||
self.tree.insert("piz","end",text="双份芝士¥30")
|
||||
self.tree.insert("","end",iid="co",text="拿铁咖啡¥10")
|
||||
self.tree.insert("co","end",text="90%纯奶添加¥5")
|
||||
self.tree.insert("co","end",text="冰滴萃取¥3")
|
||||
self.tree.insert("","end",text="总计¥148")
|
||||
self.b5=tk.Button(self.t,relief="raised",image=self.file6,bg="orange")
|
||||
self.b6=tk.Button(self.t,relief="raised",image=self.file7,bg="orange")
|
||||
self.b7=tk.Button(self.t,relief="raised",image=self.file8,bg="orange",command=self.re1)
|
||||
self.b5.place(x=220,y=400)
|
||||
self.b6.place(x=220,y=460)
|
||||
self.b7.place(x=220,y=520)
|
||||
|
||||
|
||||
def customer(self):
|
||||
self.b1.destroy()
|
||||
self.b2.destroy()
|
||||
self.b3.destroy()
|
||||
self.f2=tk.Frame(height=372,width=520,relief='sunken',bd=5)
|
||||
self.tree2=ttk.Treeview(self.f2,height=18,show="tree")
|
||||
self.f2.place(x=20,y=50)
|
||||
self.tree2.place(x=0,y=0,width=510)
|
||||
self.b8=tk.Button(self.t,relief="raised",image=self.file9,bg="orange")
|
||||
self.b9=tk.Button(self.t,relief="raised",image=self.file8,bg="orange",command=self.re2)
|
||||
self.b8.place(x=220,y=460)
|
||||
self.b9.place(x=220,y=520)
|
||||
self.tree2.insert("","end",iid=1,text="餐品:1 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=2,text="餐品:2 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=3,text="餐品:3 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=4,text="餐品:4 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=5,text="餐品:5 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=6,text="餐品:6 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=7,text="餐品:7 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=8,text="餐品:8 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=9,text="餐品:9 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=10,text="餐品:10 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=11,text="餐品:11 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=12,text="餐品:12 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=13,text="餐品:13 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=14,text="餐品:14 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=15,text="餐品:15 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=16,text="餐品:16 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=17,text="餐品:17 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
self.tree2.insert("","end",iid=18,text="餐品:18 xxx菜品{} ¥{}".format(r.randint(1,10),r.randint(10,60)))
|
||||
for i in range(1,18):
|
||||
self.tree2.insert(i,"end",text="菜品1:xxxxxxx")
|
||||
self.tree2.insert(i,"end",text="菜品2:xxxxxxx")
|
||||
self.tree2.insert(i,"end",text="菜品3:xxxxxxx")
|
||||
pass
|
||||
def bill(self):
|
||||
self.b1.destroy()
|
||||
self.b2.destroy()
|
||||
self.b3.destroy()
|
||||
self.f3=tk.Frame(height=312,width=520,relief='sunken',bd=5)
|
||||
self.tree3=ttk.Treeview(self.f3,height=15,show="tree")
|
||||
self.f3.place(x=20,y=40)
|
||||
self.tree3.place(x=0,y=0,width=510)
|
||||
self.b10=tk.Button(self.t,relief="raised",image=self.file10,bg="orange")
|
||||
|
||||
self.b13=tk.Button(self.t,relief="raised",image=self.file8,bg="orange",command=self.re3)
|
||||
self.b10.place(x=220,y=360)
|
||||
self.b13.place(x=220,y=540)
|
||||
self.tree3.insert("","end",iid=1,text="拿铁咖啡")
|
||||
self.tree3.insert("","end",iid=2,text="摩卡咖啡")
|
||||
self.tree3.insert("","end",iid=3,text="卡布奇诺")
|
||||
self.tree3.insert("","end",iid=4,text="港式奶茶")
|
||||
self.tree3.insert("","end",iid=5,text="珍珠奶茶")
|
||||
self.tree3.insert("","end",iid=6,text="9寸披萨")
|
||||
self.tree3.insert("","end",iid=7,text="12寸披萨")
|
||||
self.tree3.insert("","end",iid=8,text="菠萝烧肉")
|
||||
self.tree3.insert("","end",iid=9,text="红烧牛肉")
|
||||
self.tree3.insert("","end",iid=10,text="糖醋里脊")
|
||||
for i in range(1,11):
|
||||
self.tree3.insert(i,"end",text="糖度:xxxxxxx")
|
||||
self.tree3.insert(i,"end",text="浓度:xxxxxxx")
|
||||
self.tree3.insert(i,"end",text="用料:xxxxxxx")
|
||||
pass
|
||||
def psd(self):
|
||||
self.b1.destroy()
|
||||
self.b2.destroy()
|
||||
self.b3.destroy()
|
||||
self.e1=tk.Entry(self.t,width=50)
|
||||
self.e1.insert("end","请输入您的诉求")
|
||||
self.e1.place(x=100,y=200)
|
||||
self.e2=tk.Entry(self.t,width=50)
|
||||
self.b14=tk.Button(self.t,relief="raised",image=self.file13,bg="orange")
|
||||
self.b15=tk.Button(self.t,relief="raised",image=self.file8,bg="orange",command=self.re4)
|
||||
self.b14.place(x=220,y=480)
|
||||
self.b15.place(x=220,y=540)
|
||||
pass
|
||||
|
||||
start=logIn()
|
After Width: | Height: | Size: 750 KiB |
After Width: | Height: | Size: 560 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 750 KiB |
After Width: | Height: | Size: 560 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.3 KiB |