Buttons more matching throughout the site

This commit is contained in:
Kasper Rynning-Tønnesen
2017-06-16 20:17:18 +02:00
parent 67ab79aa68
commit 4595a70239
7 changed files with 26 additions and 16 deletions

View File

@@ -924,7 +924,7 @@ hide mdi-action-visibility mdi-action-visibility-off
} }
.listen-button, .contact-button-submit{ /*.listen-button, .contact-button-submit{
background: none; background: none;
border: none; border: none;
background-size: auto; background-size: auto;
@@ -980,6 +980,12 @@ hide mdi-action-visibility mdi-action-visibility-off
border-bottom:1px solid #2D2D2D; border-bottom:1px solid #2D2D2D;
border-radius: 2px; border-radius: 2px;
text-shadow:rgba(0,0,0,0) 0px 0px 0px; text-shadow:rgba(0,0,0,0) 0px 0px 0px;
}*/
.listen-button {
background: #2d2d2d !important;
display: flex;
justify-content: center;
} }
.cursor-pointer{ .cursor-pointer{

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -244,16 +244,6 @@ var Helper = {
}; };
$(document).on('submit', '#contact-form', function(e){
e.preventDefault();
var message = $("#contact-form-message").val();
var from = $("#contact-form-from").val();
Helper.send_mail(from, message);
});
Element.prototype.remove = function() { Element.prototype.remove = function() {
this.parentElement.removeChild(this); this.parentElement.removeChild(this);
}; };

View File

@@ -1570,6 +1570,20 @@ $(document).on( "click", ".result-object", function(e){
} }
}); });
$(document).on('click', '#submit-contact-form', function(e) {
e.preventDefault();
$("#contact-form").submit();
});
$(document).on('submit', '#contact-form', function(e){
e.preventDefault();
var message = $("#contact-form-message").val();
var from = $("#contact-form-from").val();
Helper.send_mail(from, message);
});
$(document).on( "click", "#add-many", function(e){ $(document).on( "click", "#add-many", function(e){
var id = $(this).attr("data-video-id"); var id = $(this).attr("data-video-id");
var title = $(this).attr("data-video-title"); var title = $(this).attr("data-video-title");

View File

@@ -84,7 +84,7 @@
spellcheck="false" spellcheck="false"
maxlength="18" maxlength="18"
/> />
<button class="listen-button col s2">Listen</button> <button class="listen-button btn waves-effect waves-light white-text col s2">Listen</button>
</div> </div>
</form> </form>
<div class="pitch outline"> <div class="pitch outline">

View File

@@ -73,7 +73,6 @@
<input id="contact-form-message" name="message" type="text" autocomplete="off"> <input id="contact-form-message" name="message" type="text" autocomplete="off">
<label for="contact-form-message" class="noselect">Message</label> <label for="contact-form-message" class="noselect">Message</label>
</div> </div>
<button class="contact-button-submit" id="submit-contact-form">Send</button>
<div class="valign hide" id="send-loader"> <div class="valign hide" id="send-loader">
<div class="preloader-wrapper small active"> <div class="preloader-wrapper small active">
<div class="spinner-layer spinner-blue"> <div class="spinner-layer spinner-blue">
@@ -121,7 +120,8 @@
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">Close</a> <button class="waves-effect waves-green btn-flat" id="submit-contact-form">Send</button>
<a href="#!" class=" modal-action modal-close waves-effect waves-red btn-flat">Close</a>
</div> </div>
</div> </div>
<footer class="page-footer cursor-default"> <footer class="page-footer cursor-default">