1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-12-25 23:04:06 +00:00

Link site name in header to index page. Fixed lists in 2 posts.

This commit is contained in:
Markus Birth 2015-02-24 01:36:50 +01:00
parent 0ee14bd19d
commit cfa8eb9e53
4 changed files with 38 additions and 32 deletions

View File

@ -22,7 +22,7 @@
<header> <header>
<div class="container"> <div class="container">
<div id="headerleft"> <div id="headerleft">
<h1 itemprop="name">{{ site.name }}</h1> <h1 itemprop="name"><a href="{{ site.url }}/">{{ site.name }}</a></h1>
<h2 itemprop="description">{{ site.description }}</h2> <h2 itemprop="description">{{ site.description }}</h2>
<section id="downloads"> <section id="downloads">

View File

@ -50,6 +50,12 @@ li
color: $maincolor color: $maincolor
-webkit-font-smoothing: antialiased -webkit-font-smoothing: antialiased
a
text-decoration: none
&:visited
color: inherit
header header
background: rgba(black, 0.1) background: rgba(black, 0.1)
width: 100% width: 100%
@ -233,7 +239,7 @@ hr
// Links // Links
a, a:hover, a:visited a, a:hover, a:visited
a #main_content a
color: #41a0d3 color: #41a0d3
text-shadow: 0 0 5px rgba(104, 182, 255, 0.5) text-shadow: 0 0 5px rgba(104, 182, 255, 0.5)

View File

@ -29,33 +29,33 @@ Notification service using OpenWatch, Tasker and PHP
### Setup Tasker ### Setup Tasker
1. create a new time-based profile, let it run every **5 minutes** or so 1. create a new time-based profile, let it run every **5 minutes** or so
2. add the following actions: 1. add the following actions:
1. Net → **HTTP Get** 1. Net → **HTTP Get**
* **Server:Port:** `www.example.org` *(\<your webserver\>)* * **Server:Port:** `www.example.org` *(\<your webserver\>)*
* **Path:** `/notifier/notify.php` *(adapt according to your setup)* * **Path:** `/notifier/notify.php` *(adapt according to your setup)*
* **Attributes:** *\<leave empty\>* * **Attributes:** *\<leave empty\>*
* **Timeout:** `10` *(default)* * **Timeout:** `10` *(default)*
* **Mime Type:** `text/plain; charset=utf-8` * **Mime Type:** `text/plain; charset=utf-8`
* **Output File:** *\<leave empty\>* * **Output File:** *\<leave empty\>*
- Tasker → **Stop** 1. Tasker → **Stop**
* **If:** `[X]` * **If:** `[X]`
* `%HTTPD` **Isn't Set** * `%HTTPD` **Isn't Set**
- Variable → **Variable Split** 1. Variable → **Variable Split**
* **Name:** `%HTTPD` * **Name:** `%HTTPD`
* **Splitter:** `¶` * **Splitter:** `¶`
* **Delete Base:** `[ ]` * **Delete Base:** `[ ]`
- Alert → **Notify** *(you can omit this one if you like)* 1. Alert → **Notify** *(you can omit this one if you like)*
* **Title:** `Remote Notification` * **Title:** `Remote Notification`
* **Text:** `%HTTPD1 %HTTPD2 (%HTTPD3 seconds ago)` * **Text:** `%HTTPD1 %HTTPD2 (%HTTPD3 seconds ago)`
- Misc → **Action Intent** 1. Misc → **Action Intent**
* **Action:** `com.smartmadsoft.openwatch.action.VIBRATE` * **Action:** `com.smartmadsoft.openwatch.action.VIBRATE`
* **Cat:** `None` * **Cat:** `None`
* **Data:** *\<leave empty\>* * **Data:** *\<leave empty\>*
* **Extra:** `line1:%HTTPD1` * **Extra:** `line1:%HTTPD1`
* **Extra:** `line2:%HTTPD2` *(Note: There are 2 Extra input fields)* * **Extra:** `line2:%HTTPD2` *(Note: There are 2 Extra input fields)*
* **Target:** `Broadcast Receiver` * **Target:** `Broadcast Receiver`
- Done! 1. Done!
### Setup Server ### Setup Server
@ -119,9 +119,9 @@ class DataStore {
$this->modified = false; $this->modified = false;
} }
} }
$ds = new DataStore(); $ds = new DataStore();
header( 'Content-Type: text/plain; charset=utf-8' ); header( 'Content-Type: text/plain; charset=utf-8' );
if ( isset( $_REQUEST['l1'] ) && isset( $_REQUEST['l2'] ) ) { if ( isset( $_REQUEST['l1'] ) && isset( $_REQUEST['l2'] ) ) {
// new notification ~~> store // new notification ~~> store

View File

@ -22,9 +22,9 @@ for the latest Ubuntu *Oneiric Ocelot*. These instructions should work:
1. run `./configure` 1. run `./configure`
1. try a `make all`, you will most probably get various errors like *"size_t has not been declared"* or *"size_t does not name a type"* --- if so, try this: 1. try a `make all`, you will most probably get various errors like *"size_t has not been declared"* or *"size_t does not name a type"* --- if so, try this:
* add a line: `#include <stddef.h>` as the first line to the following files: * add a line: `#include <stddef.h>` as the first line to the following files:
* `src/lw/LabelWriterLanguageMonitor.h` * `src/lw/LabelWriterLanguageMonitor.h`
* `src/lw/LabelWriterDriver.h` * `src/lw/LabelWriterDriver.h`
* `src/common/Halftoning.h` * `src/common/Halftoning.h`
* now, again, run `make all` * now, again, run `make all`
1. run `sudo make install` 1. run `sudo make install`
1. now open **System Settings** → **Printer** 1. now open **System Settings** → **Printer**