whisper.cat/weboasis/text/url/js/url.js
2023-10-05 23:28:32 +11:00

10 lines
308 B
JavaScript

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);
};
});