Verified Commit e10524d0 authored by Luc Didry's avatar Luc Didry
Browse files

Add Peanuts & Nouka photo

parent e2b47e17
Pipeline #402306 passed with stage
in 18 seconds
......@@ -23,12 +23,12 @@ Then commit your changes and create a merge request.
## Modifying the javascript
You will need [`minifier`](https://www.npmjs.com/package/minifier).
You will need [`uglify-js`](https://www.npmjs.com/package/uglify-js) (`sudo npm install uglify-js -g`).
Modify `js/wemawema.js` then do `minify js/wemawema.js`.
Modify `js/wemawema.js` then do `uglifyjs -c -m -o js/wema_wema.min.js js/wema_wema.js`.
Then commit your changes and create a merge request.
## Other contributions
Just commit your changes and create a merge request.
\ No newline at end of file
Just commit your changes and create a merge request.
......@@ -411,6 +411,7 @@
<option value="uyuni">Uyuni</option>
<option value="bark">Tree bark</option>
<option value="snow">Snow</option>
<option value="peanuts-nouka">Peanuts &amp; Nouka</option>
<option value="piksel">Piksel</option>
<option value="whale">Whale</option>
<option value="macron">Macron</option>
......
......@@ -398,8 +398,23 @@ function bindEvents() {
if (this.id !== 'wemake-font' && this.id !== 'wemake-font-style' && this.id !== 'porn-font' && this.id !== 'porn-font-style') {
if (this.id === 'bg-type' ) {
$(this).change(function() {
if ($(this).val() === 'img' && $('#bg-img').val() === 'telechat') {
if ($(this).val() === 'img' && ($('#bg-img').val() === 'telechat') || $('#bg-img').val() === 'peanuts-nouka') {
$('#rect-alpha').val(100);
if ($('#bg-img').val() === 'peanuts-nouka') {
$('#wemake-x').val('400');
$('#wemake-y').val('100');
$('#wemake-size').val('90');
$('#wemake-color').val('#FFFFFF');
$('#wemake-outline-color').val('#000000');
$('#wemake-outline-size').val(5);
$('#porn-x').val('400');
$('#porn-y').val('385');
$('#porn-size').val('90');
$('#porn-color').val('#FFFFFF');
$('#porn-outline-color').val('#000000');
$('#porn-outline-size').val(5);
}
}
if ($(this).val() === 'img' && $('#bg-img').val() !== 'custom') {
$('#custom-img-url').val('');
......@@ -408,8 +423,23 @@ function bindEvents() {
});
} else if (this.id === 'bg-img') {
$(this).change(function() {
if ($(this).val() === 'telechat') {
if ($(this).val() === 'telechat' || $('#bg-img').val() === 'peanuts-nouka') {
$('#rect-alpha').val(100);
if ($('#bg-img').val() === 'peanuts-nouka') {
$('#wemake-x').val('400');
$('#wemake-y').val('100');
$('#wemake-size').val('90');
$('#wemake-color').val('#FFFFFF');
$('#wemake-outline-color').val('#000000');
$('#wemake-outline-size').val(5);
$('#porn-x').val('400');
$('#porn-y').val('385');
$('#porn-size').val('90');
$('#porn-color').val('#FFFFFF');
$('#porn-outline-color').val('#000000');
$('#porn-outline-size').val(5);
}
}
if ($(this).val() !== 'custom') {
$('#custom-x').val(0);
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment