whisper.cat/weboasis/text/url/js/url.js

10 lines
308 B
JavaScript
Raw Normal View History

2023-10-05 23:28:32 +11:00
var app = angular.module('App', []);
app.controller('AppController', function($scope){
$scope.URL = $('#URLForm').val();
$scope.encodeURL = function() {
return encodeURIComponent($scope.URL);
};
$scope.decodeURL = function() {
return decodeURIComponent($scope.URL);
};
});