contextualise fixes and css nicer

This commit is contained in:
zeroth 2019-05-29 10:54:46 +01:00
parent ef5d68269a
commit 87a2dfb29e
14 changed files with 193 additions and 156 deletions

View File

@ -104,9 +104,11 @@ for path, subdirs, files in os.walk('./static/files/'):
@app.route("/") @app.route("/")
def home(): def home():
sessionid = "current_user.id" sessionid = "current_user.id"
#add the very first time of connection to the interface #add the very first time of connection to the interface
# if veryfirstnow is None : if session['veryfirstnow'] is None :
session['veryfirstnow'] = datetime.now() session['veryfirstnow'] = datetime.now()
return render_template('home.html', wordlist_dict=wordlist_dict) return render_template('home.html', wordlist_dict=wordlist_dict)
def functionsession(): def functionsession():
return(session) return(session)
@ -119,16 +121,22 @@ def context_processor():
@app.route('/about/') @app.route('/about/')
def about(): def about():
if session['veryfirstnow'] is None :
session['veryfirstnow'] = datetime.now()
return render_template('about.html') return render_template('about.html')
@app.route('/all/') # @app.route('/all/')
def all(): # def all():
thefile = listingfiles[positioninarray] # thefile = listingfiles[positioninarray]
counter2=0 # counter2=0
return render_template('all.html', file=thefile, listingfiles=listingfiles, jsonfiles=jsonfiles, listofdicts=listofdicts, counter2=counter2) # return render_template('all.html', file=thefile, listingfiles=listingfiles, jsonfiles=jsonfiles, listofdicts=listofdicts, counter2=counter2)
@app.route('/description') @app.route('/description')
def description(): def description():
if session['veryfirstnow'] is None :
session['veryfirstnow'] = datetime.now()
idno=request.args.get('id') idno=request.args.get('id')
jsonfilefordescription = "files/"+idno+"/"+idno+".json" jsonfilefordescription = "files/"+idno+"/"+idno+".json"
with open("static/"+jsonfilefordescription, 'r') as f: with open("static/"+jsonfilefordescription, 'r') as f:
@ -153,20 +161,23 @@ def description():
@app.route('/diverge', methods=['GET']) @app.route('/diverge', methods=['GET'])
def diverge(): def diverge():
if session['veryfirstnow'] is None :
session['veryfirstnow'] = datetime.now()
searchterm=request.args.get('search') searchterm=request.args.get('search')
now = datetime.now() #description time now = datetime.now() #description time
session['wordpath'].append(searchterm) session['wordpath'].append(searchterm)
session['clicktime'].append(now) session['clicktime'].append(now)
return render_template('diverge.html', wordlist_dict=wordlist_dict, searchterm=searchterm, index_dict=index_dict) return render_template('diverge.html', wordlist_dict=wordlist_dict, searchterm=searchterm, index_dict=index_dict)
@app.route('/listofwords') # @app.route('/listofwords')
def listofwords(): # def listofwords():
# r = jsonify(session) # # r = jsonify(session)
r = str(session) # r = str(session)
r0w = session["wordpath"][0] # r0w = session["wordpath"][0]
r0c = session["clicktime"][0] # r0c = session["clicktime"][0]
r0id = session["id"][0] # r0id = session["id"][0]
return render_template('listofwords.html', r=r, r0c=r0c, r0w=r0w, r0id=r0id) # return render_template('listofwords.html', r=r, r0c=r0c, r0w=r0w, r0id=r0id)
###################################################################################### ######################################################################################
#THE SCORE STUFF #THE SCORE STUFF
@ -177,6 +188,9 @@ def listofwords():
@app.route("/get-file") @app.route("/get-file")
def get_file(): def get_file():
if session['veryfirstnow'] is None :
session['veryfirstnow'] = datetime.now()
fullscore = None fullscore = None
wordpath = session["wordpath"] wordpath = session["wordpath"]
@ -185,6 +199,7 @@ def get_file():
veryfirstnow = session['veryfirstnow'] veryfirstnow = session['veryfirstnow']
clickongetfiletime = datetime.now() clickongetfiletime = datetime.now()
tadam = None tadam = None
initialtime = None initialtime = None
@ -209,15 +224,19 @@ def get_file():
# print("veryfirstnow : "+str(veryfirstnow)+"\n") # print("veryfirstnow : "+str(veryfirstnow)+"\n")
print(wordpath)
print(timelistforoperations)
print(idlist)
for (word, time, uniqueid) in zip(wordpath,timelistforoperations, idlist): for (word, time) in zip(wordpath,timelistforoperations):
# for (word, time, uniqueid) in zip(wordpath,timelistforoperations, idlist):
# print("word : "+word+"\n") # print("word : "+word+"\n")
# print("timeofclick : "+str(time)+"\n") # print("timeofclick : "+str(time)+"\n")
# print("============") # print("============")
# print(wordpath) # print(wordpath)
# print("============") # print("============")
filler = int(uniqueid) # filler = int(uniqueid)
upperword = word.upper() upperword = word.upper()
#get previous time for substraction #get previous time for substraction
@ -281,6 +300,11 @@ def get_file():
# print("verylastnow : "+str(clickongetfilefime)+"\n") # print("verylastnow : "+str(clickongetfilefime)+"\n")
uniquename = str(clickongetfiletime)
with open('scores/'+uniquename+'.txt', 'a+') as f:
f.write(tadam)
print(tadam) print(tadam)
return Response(tadam, return Response(tadam,

View File

@ -0,0 +1,2 @@
..SOUND-ART-COLLECTIVE...PRACTITIONERS....BOOM...CONCEPT....
DESIGN..

View File

@ -0,0 +1 @@
OBJECT....2017.....

View File

@ -0,0 +1 @@
WAY.........GOUDRON..

View File

@ -0,0 +1 @@
..ARTICULATORS...

View File

@ -0,0 +1,6 @@
TELCOSYSTEMS................................................
............................................................
....................................TELCOSYSTEMS............
............................................................
....................................TELCOSYSTEMS.....LIERMAN
.........

View File

@ -38,7 +38,7 @@ font-style: roman;
body{ body{
background: #ffffff; /* background: #ffffff; */
color:black; color:black;
font-family: 'Montserrat', sans-serif; font-family: 'Montserrat', sans-serif;
top:0; top:0;
@ -57,6 +57,19 @@ a{
color: white; color: white;
} }
div#wrapper{
width: 100%;
}
div#top{
position: relative;
background: white;
}
div#bottom{
position: absolute;
width: 100%;
}
/********************************************************/ /********************************************************/
/* SELECTION */ /* SELECTION */
@ -78,49 +91,26 @@ a{
div.home{ div.home{
/* padding: 1em 5em 1em 7.5em; */ /* padding: 1em 5em 1em 7.5em; */
padding-left: 9em; padding-left: 9em;
padding-top: 3em; padding-top: 2em;
padding-bottom: 3em; padding-bottom: 3em;
padding-right: 0.5em; padding-right: 0.5em;
text-align: justify; text-align: justify;
font-size: 1.3em; font-size: 1em;
} }
div.home a{ div.home a{
} }
div.home a:hover{ div.home a:hover{
/* font-style: italic; */
/* text-decoration: underline overline dotted red; */
/* font-weight: bold; */
background: red; background: red;
color: white; color: white;
} }
div.explanation{ div.explanation{
width: 100%;
position: fixed;
bottom: 0;
top: -6.5em;
left: 9em;
right: 0;
background: white;
color: bla;
height: 1em;
padding: 10px 0 10px 10px;
/* width: 6%; */
font-size: 0.75em; font-size: 0.75em;
/* font-family: monospace; */ float: right;
float: left; padding-right: 0.75em;
padding-right: 0.7em; font-style: italic;
-webkit-transform-origin: 0 50%;
-moz-transform-origin: 0 50%;
-ms-transform-origin: 0 50%;
-o-transform-origin: 0 50%;
transform-origin: 0 50%;
-webkit-transform: rotate(-90deg) translate(-50%, 50%);
-moz-transform: rotate(-90deg) translate(-50%, 50%);
-ms-transform: rotate(-90deg) translate(-50%, 50%);
-o-transform: rotate(-90deg) translate(-50%, 50%);
transform: rotate(-90deg) translate(-50%, 50%);
} }
@ -128,48 +118,10 @@ div.explanation{
/* NAVIGATION */ /* NAVIGATION */
/********************************************************/ /********************************************************/
header{ header{
padding-top: 3em; position: absolute;
} top:13em;
width: 27em;
#logobox{
position: fixed;
top: 0;
bottom: 0;
height: 1.5em;
margin: auto;
background: none;
left: 0;
-webkit-transform-origin: 0 50%; -webkit-transform-origin: 0 50%;
-moz-transform-origin: 0 50%;
-ms-transform-origin: 0 50%;
-o-transform-origin: 0 50%;
transform-origin: 0 50%;
-webkit-transform: rotate(-90deg) translate(-50%, 50%);
-moz-transform: rotate(-90deg) translate(-50%, 50%);
-ms-transform: rotate(-90deg) translate(-50%, 50%);
-o-transform: rotate(-90deg) translate(-50%, 50%);
transform: rotate(-90deg) translate(-50%, 50%);
}
#logobox a, #logobox a:visited{
color: black;
}
#logobox a:hover{
color: red;
}
h1{
font-size: 2em;
line-height: 1.5;
display:inline;
background-color: none;
/* width: 100%; */
}
ul.menu {
margin-left: 0.4em;
margin-top: 2.3em;
position: fixed;
-webkit-transform-origin: 0 50%;
-moz-transform-origin: 0 50%; -moz-transform-origin: 0 50%;
-ms-transform-origin: 0 50%; -ms-transform-origin: 0 50%;
-o-transform-origin: 0 50%; -o-transform-origin: 0 50%;
@ -179,9 +131,36 @@ ul.menu {
-ms-transform: rotate(-90deg) translate(-50%, 50%); -ms-transform: rotate(-90deg) translate(-50%, 50%);
-o-transform: rotate(-90deg) translate(-50%, 50%); -o-transform: rotate(-90deg) translate(-50%, 50%);
transform: rotate(-90deg) translate(-50%, 50%); transform: rotate(-90deg) translate(-50%, 50%);
}
#logobox{
display: inline-block;
background: none;
}
#logobox a, #logobox a:visited{
color: black;
}
#logobox a:hover{
color: red;
}
#logobox h1{
font-size: 2em;
line-height: 1.5;
}
nav{
float: right;
}
nav ul.menu {
font-weight: bold;
float: left;
display: inline-block;
text-align: right; text-align: right;
} }
/********************************************************/ /********************************************************/
/* TEXT */ /* TEXT */
/********************************************************/ /********************************************************/
@ -194,9 +173,6 @@ a:visited {
color:red; color:red;
} }
ul{ ul{
list-style: none; list-style: none;
} }
@ -222,7 +198,6 @@ li:hover {
img{ img{
max-width: 90%; max-width: 90%;
margin-bottom: 15px; margin-bottom: 15px;
/* float: left; */
} }
video{ video{
max-width: 90%; max-width: 90%;
@ -241,9 +216,6 @@ div{
font-family: 'Compagnon'; font-family: 'Compagnon';
font-style: roman; font-style: roman;
display: block; display: block;
background-color: white;
position: fixed;
/* border-bottom: black 1.5px solid; */
width: 100%; width: 100%;
top:0; top:0;
right: 0; right: 0;
@ -251,16 +223,7 @@ div{
padding: 0; padding: 0;
margin: 0; margin: 0;
padding: 10px; padding: 10px;
z-index: 2;
width: auto; width: auto;
/* background-color: white; */
/* border:1px blue solid; */
/* -webkit-transform-origin: right top;
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg); */
} }
.word{ .word{
color:black; color:black;
@ -277,13 +240,10 @@ transform: rotate(90deg); */
.text{ .text{
float: right; float: right;
width: 50%; width: 50%;
/* position: relative; */
} }
.item{ .item{
/* position: relative; */
float: left; float: left;
width: 50%; width: 50%;
/* vertical-align: top; */
padding-top: 7.8%; padding-top: 7.8%;
} }
@ -309,7 +269,6 @@ nav.nav_bottom {
margin: 0; margin: 0;
padding: 0; padding: 0;
height: auto; height: auto;
z-index: 1000;
bottom: 0px; bottom: 0px;
text-transform: uppercase; text-transform: uppercase;
font-size: 15px; font-size: 15px;
@ -322,7 +281,6 @@ nav.nav_bottom {
background: white; background: white;
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;
/* border-top:0.05em solid black; */
} }
nav.nav_bottom div li { nav.nav_bottom div li {
@ -361,56 +319,54 @@ div.diverge_all{
div.diverge_all p{ div.diverge_all p{
font-weight: bold; font-weight: bold;
font-size: 1.3em; font-size: 1.3em;
margin-left: 14.3em;
} }
div.diverge_list { div.diverge_list {
width: 40%; /* width: 40%; */
} }
div.diverge_list a{ div.diverge_list a{
} }
div.about{
padding: 1em 5em 1em 7.5em;
}
span.folder-corner { span.folder-corner {
font-size: 0.8em; font-size: 0.8em;
font-style: italic; font-style: italic;
} }
/********************************************************/
/* ABOUT PAGE */
/********************************************************/
div.aboutpage{
padding: 1em 5em 1em 7.5em;
}
/********************************************************/ /********************************************************/
/* INDEX OF FOLDERS */ /* INDEX OF FOLDERS */
/********************************************************/ /********************************************************/
div.allcontentindex{
padding: 1em 5em 1em 7.5em;
}
.foldersindex{ .foldersindex{
/* border: black 1px solid; */
width: 35%; width: 35%;
padding-top: 50px; padding-top: 50px;
padding-bottom: 50px; padding-bottom: 50px;
} }
.foldersindex a{ .foldersindex a{
color: black; color: black;
width: 100%; width: 80%;
/* height: 98%; */ height: 98%;
display: inline-block; display: inline-block;
} }
.foldersindex a:hover{ .foldersindex a:hover{
background-color: red; background-color: red;
color: white; color: white;
width: 100%; width: 100%;
/* height: 98%; */
display: inline-block; display: inline-block;
} }
h1.logo a { h1.logo a {
text-transform: uppercase; text-transform: uppercase;
} }
div.index_intro {
width: 80%;
}

View File

@ -1,17 +1,41 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block content %} {% block content %}
<div class="aboutpage">
<div class="about"> <div class="about">
<h1>About</h1> <h3>* About the archive</h3>
<p>Pushing scores is a two years long project initiated by De Player(*) on music notation and..... <p>Pushing scores is a two years long project initiated by De Player(*) on music notation and.....
The archive is composed of.... The archive is composed of....
The concept for this archive is.... The concept for this archive is....
This archive was conceived and developped by.... This archive was conceived and developped by....
Using Flask, Jinja, Python, suboptimal brain power. Using Flask, Jinja, Python, suboptimal brain power.
Performers for the launch... Performers for the launch...
<br /> <br />
* De Player is a Rotterdam based polymorphic production platform for performance art, experimental music and visual arts. <br /> * De Player is a Rotterdam based polymorphic production platform for performance art, experimental music and visual arts. <br />
** Varia is ** Varia is
</p> </p>
</div> </div>
{% endblock %}
<div class="index_intro">
<h3>* About Pushing Scores</h3>
<p>Pushing Scores is a two-year artistic research project, initiated by <a target="_blank" href="https://www.deplayer.nl/">De Player</a> and graphic designer Remco van Bladel.
Throughout 2016 and 2018, this project researched the phenomenon of notation and the graphic representation of music.
It unfolded through a nomadic program which included the creation of newly commissioned artworks and public events addressing contemporary questions and issues in this particular field.<br><br>
What are the possibilities of graphic scores, in a day and age in which graphic notation is still usually seen as a drawing serving as some kind of sheet music? In an attempt to redefine this concept, <a target="_blank" href="https://www.deplayer.nl/">De Player</a> compiled a programme in which artists, musicians,
theoreticians and practitioners were invited to participate. The collective goal was to develop and present new audio-visual and media-technical forms of graphic notation through artistic research and development. Based on our compilation of the most contemporary and innovative graphic notation practices in the fields of music, sound art, performance art, e-culture, new-media art, graphic design and media design, <a target="_blank"href="https://www.deplayer.nl/">De Player</a> introduced artists and designers from various creative disciplines to a national and international audience, with the goal of collectively developing new forms of graphic notation.<br><br>
The incentive for this project is the belief that graphic notation in 20th Century avant-garde music and sound art constitutes an important, still radically innovative but wrongfully marginalised form, which can play a key role in the development of new audio-visual languages and media. <a target="_blank" href="https://www.deplayer.nl/">De Player</a>'s ambition, and that of their collaborating partners, was to emancipate graphic notation from the confines of the modernist tradition, in such a way that it may remain an innovative and provocative medium for decades to come.<br><br>
This archival web publication was generated out of this research. For an overview of the collection that is making up this website, see below.</p>
</div>
<br /><br /><br /><br />
<div class="colophon">
<h3>* Colophon</h3>
<p> Design and development : Cristina Cochior and Julie Boschat Thorez <br />
Font :
</p>
</div>
</div>
{% endblock content %}

View File

@ -57,7 +57,7 @@
{% if itemid != "01" %} {% if itemid != "01" %}
{% set countminus = int_itemid - 1 %} {% set countminus = int_itemid - 1 %}
{% if int_itemid in range(1,9) %} {% if int_itemid in range(1,11) %}
{% set addressminus = "/description?id=" + "0" + countminus|string %} {% set addressminus = "/description?id=" + "0" + countminus|string %}
{% else %} {% else %}
{% set addressminus = "/description?id=" + countminus|string %} {% set addressminus = "/description?id=" + countminus|string %}

View File

@ -1,6 +1,8 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block content %} {% block content %}
<div class="description">
<div class="diverge_all"> <div class="diverge_all">
<p>Sentences that have <i>{{ searchterm }}</i> in common : </p><br> <p>Sentences that have <i>{{ searchterm }}</i> in common : </p><br>
{% for word in wordlist_dict %} {% for word in wordlist_dict %}
@ -18,8 +20,9 @@
<br><br><br> <br><br><br>
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -2,7 +2,11 @@
{% block content %} {% block content %}
<div class="homecontent">
<div class="explanation">
These keywords originate from all the written content embedded within the archive.
</div>
<div class="home"> <div class="home">
{% for word in wordlist_dict %} {% for word in wordlist_dict %}
@ -10,8 +14,7 @@
<a href={{address}}>{{ word }}</a> <a href={{address}}>{{ word }}</a>
{% endfor %} {% endfor %}
</div> </div>
<div class="explanation">
These keywords originate from all the written content embedded within the archive.
</div> </div>
{% endblock content %} {% endblock content %}

View File

@ -7,31 +7,40 @@
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
</head> </head>
<body> <body>
<div id="wrapper">
<div id="top">
<!-- WORDPATH -->
<div id="thewordpath">
{% for item in functionsession %}
<span class="word">{{ item }} ▶ </span>
{% endfor %}
</div>
</div>
<div id="bottom">
<!-- THE REST -->
<header> <header>
<!-- <div class="container"> -->
<div class="container">
<div id="logobox"> <div id="logobox">
<h1 class="logo"><a href="{{ url_for('home') }}">Pushing Scores</a></h1> <h1 class="logo"><a href="{{ url_for('home') }}">Pushing Scores</a></h1>
</div> </div>
<strong><nav> <nav>
<ul class="menu"> <ul class="menu">
<li><a href="{{ url_for('about') }}">About</a></li> <li><a href="{{ url_for('about') }}">About</a></li>
<li><a href="{{ url_for('index') }}">Index</a></li> <li><a href="{{ url_for('index') }}">Index</a></li>
<li><a href="{{ url_for('get_file') }}">Score</a></li> <li><a href="{{ url_for('get_file') }}">Score</a></li>
</ul> </ul>
</nav></strong> </nav>
</div> <!-- </div> -->
</header> </header>
<div id="thewordpath">
{% for item in functionsession %}
<span class="word">{{ item }} ▶ </span>
{% endfor %}
</div>
{% block content %} {% block content %}
{% endblock content %} {% endblock content %}
</div>
</div>
</body> </body>
</html> </html>

View File

@ -1,7 +1,21 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block content %} {% block content %}
<div class="index_intro"> <div class="allcontentindex">
<h1>* Folders index</h1>
<div class="foldersindex">
{% block index %}
{% for each in index_dict %}
{% set address = "/description?id=" + each %}
<a href={{address}}>{{index_dict[each]}}</a> <br />
{% endfor %}
{% endblock index %}
<!-- </div> -->
<!--
<div class="index_intro column">
Pushing Scores is a two-year artistic research project, initiated by <a target="_blank" href="https://www.deplayer.nl/">De Player</a> and graphic designer Remco van Bladel. Pushing Scores is a two-year artistic research project, initiated by <a target="_blank" href="https://www.deplayer.nl/">De Player</a> and graphic designer Remco van Bladel.
Throughout 2016 and 2018, this project researched the phenomenon of notation and the graphic representation of music. Throughout 2016 and 2018, this project researched the phenomenon of notation and the graphic representation of music.
It unfolded through a nomadic program which included the creation of newly commissioned artworks and public events addressing contemporary questions and issues in this particular field.<br><br> It unfolded through a nomadic program which included the creation of newly commissioned artworks and public events addressing contemporary questions and issues in this particular field.<br><br>
@ -12,15 +26,8 @@
The incentive for this project is the belief that graphic notation in 20th Century avant-garde music and sound art constitutes an important, still radically innovative but wrongfully marginalised form, which can play a key role in the development of new audio-visual languages and media. <a target="_blank" href="https://www.deplayer.nl/">De Player</a>'s ambition, and that of their collaborating partners, was to emancipate graphic notation from the confines of the modernist tradition, in such a way that it may remain an innovative and provocative medium for decades to come.<br><br> The incentive for this project is the belief that graphic notation in 20th Century avant-garde music and sound art constitutes an important, still radically innovative but wrongfully marginalised form, which can play a key role in the development of new audio-visual languages and media. <a target="_blank" href="https://www.deplayer.nl/">De Player</a>'s ambition, and that of their collaborating partners, was to emancipate graphic notation from the confines of the modernist tradition, in such a way that it may remain an innovative and provocative medium for decades to come.<br><br>
This archival web publication was generated out of this research. For an overview of the collection that is making up this website, see below. This archival web publication was generated out of this research. For an overview of the collection that is making up this website, see below.
</div> </div> -->
<div class="foldersindex">
{% block index %}
{% for each in index_dict %}
{% set address = "/description?id=" + each %}
<a href={{address}}>{{index_dict[each]}}</a> <br />
{% endfor %}
{% endblock index %}
</div> </div>
</div>
{% endblock %} {% endblock %}