-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from christopherldotcom/development
Development
- Loading branch information
Showing
28 changed files
with
1,239 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
codecov: | ||
notify: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "50...100" | ||
|
||
status: | ||
project: yes | ||
patch: yes | ||
changes: no | ||
|
||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
|
||
comment: | ||
layout: "header, diff" | ||
behavior: default | ||
require_changes: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.idea | ||
**/.DS_Store | ||
**/node_modules | ||
**/config.inc.local.php | ||
**/_test/build/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
;(function ($) { | ||
|
||
$(function () { | ||
|
||
$('.utmdclinks-copy').on('click', function(event){ | ||
$(this).select(); | ||
}); | ||
|
||
}); | ||
|
||
})(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
;(function ($) { | ||
|
||
$(function () { | ||
var feedback_ele = $('label.utmdclink_url span'); | ||
|
||
$('#utmdclink_url').on('blur', function(event){ | ||
feedback_ele.removeClass(); | ||
|
||
if ($(this).val() != '') { | ||
$.ajax({ | ||
url: ajaxurl, | ||
data: { | ||
key: utmdc_rest_api.action_key, | ||
action: 'utmdc_check_url_response', | ||
url: $(this).val() | ||
} | ||
}).done( | ||
function (response) { | ||
process_response(response.status); | ||
} | ||
).fail( | ||
function (response) { | ||
process_response(response.status); | ||
} | ||
); | ||
} | ||
}); | ||
|
||
function process_response(status) { | ||
switch (status) { | ||
case 200: | ||
feedback_ele.addClass('valid'); | ||
break; | ||
|
||
case 400: | ||
case 401: | ||
case 403: | ||
case 404: | ||
case 500: | ||
case 502: | ||
feedback_ele.addClass('invalid'); | ||
break; | ||
|
||
default: | ||
feedback_ele.addClass('unknown'); | ||
break; | ||
} | ||
} | ||
}); | ||
|
||
})(jQuery); |
Oops, something went wrong.